/* ===== LEGAL DOCUMENT PAGES (Privacy, Terms, Cookie, Sitemap) ===== */

.legal-document-page .page-header {
    position: relative;
    padding: calc(110px + var(--space-20)) 0 var(--space-20);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    overflow: hidden;
    min-height: 42vh;
    display: flex;
    align-items: center;
}

.legal-document-page .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    position: relative;
    z-index: 10;
}

.legal-document-page .header-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.legal-document-page .breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.legal-document-page .breadcrumb-item {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.legal-document-page .breadcrumb-item:hover {
    color: var(--text-white);
}

.legal-document-page .breadcrumb-item.active {
    color: var(--secondary-color);
    font-weight: var(--font-weight-semibold);
}

.legal-document-page .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
}

.legal-document-page .page-title {
    font-family: var(--font-primary);
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-5);
    background: linear-gradient(135deg, var(--text-white), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.legal-document-page .page-description {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.92);
    max-width: 560px;
    margin: 0 auto;
}

.legal-document-page .header-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.legal-document-page .header-bg-shapes .bg-shape {
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.1;
}

.legal-document-page .header-bg-shapes .shape-1 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, var(--secondary-color), #fbbf24);
    top: 12%;
    right: -6%;
}

.legal-document-page .header-bg-shapes .shape-2 {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--accent-color), #059669);
    bottom: 18%;
    left: -4%;
}

.legal-document-page .header-bg-shapes .shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    top: 45%;
    left: 12%;
}

/* Main content */
.legal-main {
    padding: var(--space-10) 0 var(--space-16);
    background: var(--bg-light);
}

.legal-container {
    /* Wider boxed column — aligns with site content scale (~1140–1200px cap) */
    max-width: min(72rem, calc(100% - var(--space-8)));
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.legal-meta {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    line-height: var(--line-height-normal);
}

.legal-prose {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-8);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

/* Compact document headings — Inter, restrained scale */
.legal-prose h2 {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    margin: var(--space-6) 0 var(--space-2);
    line-height: var(--line-height-snug);
    letter-spacing: -0.01em;
}

.legal-prose h2:first-child {
    margin-top: 0;
}

.legal-prose h3 {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    margin: var(--space-6) 0 var(--space-2);
    line-height: var(--line-height-snug);
    letter-spacing: -0.01em;
}

.legal-prose p,
.legal-prose li {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--text-medium);
}

.legal-prose p {
    margin-bottom: var(--space-3);
}

.legal-prose ul,
.legal-prose ol {
    margin: 0 0 var(--space-4) var(--space-5);
}

.legal-prose li {
    margin-bottom: var(--space-1);
}

.legal-prose a {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-prose a:hover {
    color: var(--primary-dark);
}

.legal-prose .legal-note {
    font-size: var(--font-size-xs);
    color: var(--text-medium);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--secondary-color);
    margin: var(--space-5) 0;
    line-height: var(--line-height-relaxed);
}

.legal-crossnav {
    margin-top: var(--space-8);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.legal-crossnav span {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    width: 100%;
}

.legal-crossnav a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    text-decoration: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.legal-crossnav a:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
    .legal-prose {
        padding: var(--space-5) var(--space-4);
    }
}

/* ----- Sitemap (wider layout) ----- */
.sitemap-main .legal-container {
    max-width: min(78rem, calc(100% - var(--space-8)));
}

.sitemap-grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 600px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sitemap-section h2 {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    margin: 0 0 var(--space-3);
    padding-bottom: var(--space-1);
    border-bottom: 2px solid var(--secondary-color);
}

.sitemap-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sitemap-section li {
    margin-bottom: var(--space-2);
}

.sitemap-section a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: var(--font-size-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) 0;
    transition: color var(--transition-fast);
}

.sitemap-section a:hover {
    color: var(--primary-color);
}

.sitemap-section a i {
    font-size: var(--font-size-xs);
    color: var(--secondary-color);
}

.sitemap-note {
    margin-top: var(--space-6);
    margin-bottom: 0;
}
