/* ==========================================================================
   TableTap — Legal & Compliance Pages Stylesheet
   (Mentions Légales, Conditions Générales de Vente, Confidentialité)
   ========================================================================== */

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #ecfdf5;
    --accent: #f59e0b;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-sub: #475569;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
.legal-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.legal-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.4rem;
}

.logo-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: inline-block;
}

.logo span {
    color: var(--primary);
}

.nav-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #fff;
    transition: all 0.2s ease;
}

.nav-back-link:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
    background: var(--primary-light);
}

/* Main Container */
.legal-container {
    max-width: 920px;
    margin: 2.5rem auto 4rem;
    padding: 0 1.5rem;
}

/* Hero Badge & Title */
.legal-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid #a7f3d0;
}

.legal-intro h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.legal-intro p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Card Content */
.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.legal-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 2.25rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

.legal-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-sub);
    margin: 1.5rem 0 0.5rem;
}

.legal-card p {
    color: #334155;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.legal-card ul, .legal-card ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: #334155;
}

.legal-card li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.legal-card strong {
    color: var(--text-main);
}

/* Highlighting info boxes */
.info-box {
    background: #f1f5f9;
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-sub);
}

.info-box.alert {
    background: #fffbeb;
    border-left-color: var(--accent);
}

/* Legal grid details */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.grid-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.grid-item .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.grid-item .value {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
    word-break: break-word;
}

.grid-item .value a {
    color: var(--primary-dark);
    text-decoration: none;
}

.grid-item .value a:hover {
    text-decoration: underline;
}

/* Quick Navigation Links between legal pages */
.legal-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-link {
    text-decoration: none;
    color: var(--text-sub);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.tab-link:hover, .tab-link.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Footer */
.legal-footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    background: #ffffff;
}

.legal-footer a {
    color: var(--primary-dark);
    text-decoration: none;
}

.legal-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-card {
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-lg);
    }
    .legal-intro h1 {
        font-size: 1.75rem;
    }
}
