/* ===========================================================
   SceneLink — Premium Legal Page Styling (Privacy / Terms)
   Matches Contact page premium tone
   =========================================================== */

/* Hero */
.page-hero {
    position: relative;
    padding: 120px 20px 72px;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212,175,55,0.16) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(233,30,140,0.10) 0%, transparent 55%),
        linear-gradient(180deg, #0a0a0a 0%, #121212 100%);
    overflow: hidden;
    text-align: center;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(212,175,55,0.028) 40px, rgba(212,175,55,0.028) 41px);
    pointer-events: none;
}
.page-hero h1 {
    font-size: clamp(34px, 6vw, 54px);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #D4AF37 70%, #b8860b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.05;
    position: relative;
}
.page-hero p {
    font-size: clamp(15px, 2vw, 19px);
    color: rgba(255,255,255,0.75);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.55;
}

/* Legal layout */
.legal-content {
    padding: 72px 20px 96px;
    background: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
}
.legal-content .container {
    max-width: 1080px;
    margin: 0 auto;
}

/* Last-updated meta banner */
.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 14px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.legal-meta strong { color: #D4AF37; font-weight: 700; }
.legal-meta .legal-meta-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #2ECC71;
    box-shadow: 0 0 8px rgba(46,204,113,0.7);
    margin-right: 6px;
    vertical-align: middle;
}

/* Legal table of contents */
.legal-toc {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 34px;
}
.legal-toc h4 {
    color: #D4AF37;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 14px;
}
.legal-toc ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 22px;
    padding-left: 22px;
    margin: 0;
}
.legal-toc a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    line-height: 1.55;
}
.legal-toc a:hover { color: #D4AF37; }

/* Document */
.legal-document {
    display: grid;
    gap: 20px;
}

/* Each section becomes a polished card */
.legal-content .document-section,
.legal-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 28px 30px;
    transition: border-color 0.2s, transform 0.2s;
}
.legal-content .document-section:hover,
.legal-section:hover {
    border-color: rgba(212,175,55,0.25);
}

.legal-content .document-section h2,
.legal-section h2 {
    color: #fff;
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 800;
    margin: 0 0 14px;
    padding-left: 16px;
    position: relative;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.legal-content .document-section h2::before,
.legal-section h2::before {
    content: '';
    position: absolute;
    left: 0; top: 12%;
    height: 76%;
    width: 4px;
    background: linear-gradient(180deg, #D4AF37, #b8860b);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(212,175,55,0.5);
}

.legal-content .document-section h3,
.legal-section h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #D4AF37;
}

.legal-content .document-section p,
.legal-section p {
    color: rgba(255,255,255,0.78);
    line-height: 1.75;
    font-size: 15.5px;
    margin: 0 0 12px;
}
.legal-content .document-section p:last-child,
.legal-section p:last-child { margin-bottom: 0; }

.legal-content .document-section ul,
.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 12px;
    display: grid;
    gap: 8px;
}
.legal-content .document-section ul li,
.legal-section ul li {
    position: relative;
    padding-left: 24px;
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
    font-size: 15px;
}
.legal-content .document-section ul li::before,
.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 8px; top: 10px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #D4AF37;
    box-shadow: 0 0 6px rgba(212,175,55,0.6);
}

.legal-content .document-section strong,
.legal-section strong { color: #fff; }

/* Inline callout/note box */
.legal-callout {
    margin: 16px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(212,175,55,0.02));
    border-left: 3px solid #D4AF37;
    border-radius: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 14.5px;
    line-height: 1.65;
}
.legal-callout strong { color: #D4AF37; }

/* Contact block at bottom */
.legal-contact-block {
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(255,255,255,0.02));
    border: 1px solid rgba(212,175,55,0.3);
}
.legal-contact-block h2::before {
    background: linear-gradient(180deg, #E91E8C, #D4AF37) !important;
}
.legal-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}
.legal-contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.legal-contact-links a:hover {
    background: rgba(212,175,55,0.15);
    border-color: #D4AF37;
    transform: translateY(-1px);
    color: #fff;
}
.legal-contact-links a i { color: #D4AF37; }

/* Mobile polish */
@media (max-width: 700px) {
    .page-hero { padding: 90px 16px 52px; }
    .legal-content { padding: 48px 14px 72px; }
    .legal-content .document-section,
    .legal-section { padding: 22px 18px; }
    .legal-content .document-section h2,
    .legal-section h2 { font-size: 20px; }
    .legal-meta { padding: 12px 16px; font-size: 13px; }
    .legal-toc { padding: 18px 20px; }
}

@media (max-width: 420px) {
    .legal-content .document-section ul li,
    .legal-section ul li { font-size: 14.5px; }
    .legal-content .document-section p,
    .legal-section p { font-size: 14.8px; }
}