/* Hero Section */
.hero-legal-premium {
    position: relative;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-legal-gradient {
    position: absolute;
    top: -50%;
    right: -25%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: floatGradient 20s ease-in-out infinite;
}

@keyframes floatGradient {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, 10%) scale(1.1); }
}

.hero-legal-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #d4af37;
    font-weight: 500;
}

.legal-icon {
    width: 24px;
    height: 24px;
}

.hero-legal-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-legal-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    font-weight: 300;
    margin-bottom: 32px;
}

.legal-meta {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.meta-item svg {
    width: 20px;
    height: 20px;
    color: #d4af37;
}

/* DPA hero meta readability in light mode */
html[data-theme="light"] body.page-legal .legal-meta .meta-item,
html:not([data-theme]) body.page-legal .legal-meta .meta-item,
html[data-theme="light"] body.page-dpa .legal-meta .meta-item,
html:not([data-theme]) body.page-dpa .legal-meta .meta-item {
    color: #334155;
}

/* Content */
.page-content-premium {
    padding: 80px 0;
    background: #fafafa;
}

.legal-content-premium {
    max-width: 900px;
    margin: 0 auto;
}

.legal-intro-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.intro-card-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-card-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.intro-card-content h2 {
    margin-bottom: 12px;
    color: #0a0e27;
}

.intro-card-content .lead {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    line-height: 1.7;
}

.legal-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.legal-section h2 {
    color: #0a0e27;
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 1.5rem;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.legal-section h3 {
    color: #1e293b;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.legal-section h3:first-of-type {
    margin-top: 0;
}

.legal-section h4 {
    color: #1e293b;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.legal-section .lead-text {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.legal-section p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-section ul,
.legal-section ol {
    padding-left: 0;
    margin-bottom: 16px;
}

.legal-section ul {
    list-style: none;
}

.legal-section ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: #475569;
    line-height: 1.6;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #d4af37;
    border-radius: 50%;
}

.legal-section ul li strong {
    color: #1e293b;
    font-weight: 600;
}

.legal-section ol.numbered-list {
    list-style: none;
    counter-reset: item;
}

.legal-section ol.numbered-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: #475569;
    line-height: 1.6;
    counter-increment: item;
}

.legal-section ol.numbered-list li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: 700;
}

/* Info Box */
.info-box {
    background: #f8fafc;
    border-left: 4px solid #d4af37;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
}

.info-box-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.info-box h4 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
}

/* Legal Highlight Box */
.legal-highlight-box {
    margin: 1rem 0;
}

/* DPA Annex Styling */
.legal-section[id^="annex-"] {
    background: #f8fafc;
}

/* DPA Cards */
.dpa-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--gray-200, #e5e7eb);
}

.dpa-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dpa-contact-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--gray-200, #e5e7eb);
}

.legal-section table {
    width: 100%;
    border-collapse: collapse;
}

.legal-section table th,
.legal-section table td {
    text-align: left;
    padding: 0.75rem;
    color: #475569;
}

.legal-section table th {
    font-weight: 600;
    color: #1e293b;
}

.legal-section table tr {
    border-bottom: 1px solid #e2e8f0;
}

.legal-section a {
    color: var(--wf-blue, #0066cc);
    text-decoration: none;
}

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

/* Dark Mode */
html[data-theme="dark"] .page-content-premium {
    background: var(--gray-50);
}

html[data-theme="dark"] .legal-intro-card,
html[data-theme="dark"] .legal-section {
    background: #1A1A1A;
}

html[data-theme="dark"] .legal-section[id^="annex-"] {
    background: #141414;
}

html[data-theme="dark"] .dpa-card,
html[data-theme="dark"] .dpa-contact-card {
    background: #262626;
    border-color: #404040;
}

html[data-theme="dark"] .legal-section h2 {
    color: #fff;
    border-bottom-color: #333;
}

html[data-theme="dark"] .legal-section h3,
html[data-theme="dark"] .legal-section h4 {
    color: #e5e7eb;
}

html[data-theme="dark"] .legal-section p,
html[data-theme="dark"] .legal-section ul li,
html[data-theme="dark"] .legal-section ol li,
html[data-theme="dark"] .legal-section table td {
    color: #9ca3af;
}

html[data-theme="dark"] .legal-section table th {
    color: #e5e7eb;
}

html[data-theme="dark"] .legal-section table tr {
    border-bottom-color: #333;
}

html[data-theme="dark"] .legal-section ul li strong {
    color: #e5e7eb;
}

html[data-theme="dark"] .intro-card-content h2 {
    color: #fff;
}

html[data-theme="dark"] .intro-card-content .lead {
    color: #9ca3af;
}

html[data-theme="dark"] .legal-section .lead-text {
    color: #9ca3af;
    border-bottom-color: #333;
}

html[data-theme="dark"] .info-box,
html[data-theme="dark"] .legal-highlight-box {
    background: #262626;
}

html[data-theme="dark"] .info-box-warning {
    background: #422006;
}

html[data-theme="dark"] .info-box h4 {
    color: #e5e7eb;
}

html[data-theme="dark"] .info-box p {
    color: #9ca3af;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-legal-premium {
        padding: 80px 0 60px;
    }

    .legal-meta {
        flex-direction: column;
        gap: 12px;
    }

    .legal-intro-card {
        flex-direction: column;
        padding: 32px 24px;
    }

    .legal-section {
        padding: 32px 24px;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }
}

/* prefers-color-scheme dark mode */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .page-content-premium {
        background: var(--gray-50);
    }

    html:not([data-theme="light"]) .legal-intro-card,
    html:not([data-theme="light"]) .legal-section {
        background: #1A1A1A;
    }

    html:not([data-theme="light"]) .legal-section[id^="annex-"] {
        background: #141414;
    }

    html:not([data-theme="light"]) .dpa-card,
    html:not([data-theme="light"]) .dpa-contact-card {
        background: #262626;
        border-color: #404040;
    }

    html:not([data-theme="light"]) .legal-section h2 {
        color: #fff;
        border-bottom-color: #333;
    }

    html:not([data-theme="light"]) .legal-section h3,
    html:not([data-theme="light"]) .legal-section h4 {
        color: #e5e7eb;
    }

    html:not([data-theme="light"]) .legal-section p,
    html:not([data-theme="light"]) .legal-section ul li,
    html:not([data-theme="light"]) .legal-section ol li,
    html:not([data-theme="light"]) .legal-section table td {
        color: #9ca3af;
    }

    html:not([data-theme="light"]) .legal-section table th {
        color: #e5e7eb;
    }

    html:not([data-theme="light"]) .legal-section table tr {
        border-bottom-color: #333;
    }

    html:not([data-theme="light"]) .legal-section ul li strong {
        color: #e5e7eb;
    }

    html:not([data-theme="light"]) .intro-card-content h2 {
        color: #fff;
    }

    html:not([data-theme="light"]) .intro-card-content .lead {
        color: #9ca3af;
    }

    html:not([data-theme="light"]) .legal-section .lead-text {
        color: #9ca3af;
        border-bottom-color: #333;
    }

    html:not([data-theme="light"]) .info-box,
    html:not([data-theme="light"]) .legal-highlight-box {
        background: #262626;
    }

    html:not([data-theme="light"]) .info-box-warning {
        background: #422006;
    }

    html:not([data-theme="light"]) .info-box h4 {
        color: #e5e7eb;
    }

    html:not([data-theme="light"]) .info-box p {
        color: #9ca3af;
    }
}
