/* ============================================================
   LEGAL DOCUMENT — Editorial Cinema aesthetic
   Used by: template-privacy.php + template-cookies.php
   - Premium magazine layout (narrow column, generous whitespace)
   - Ambient atmosphere (radial gold mist + film grain)
   - Restrained typography hierarchy
   - Refined hairline ornaments instead of heavy borders
   ============================================================ */

/* --- Kill Astra's white sides --- */
html, body {
    background: #050505 !important;
    color: #fff !important;
}
body.page-template-template-privacy,
body.page-template-template-cookies,
body.page-template-template-accessibility {
    background: #050505 !important;
}
body.page-template-template-privacy .site,
body.page-template-template-privacy #page,
body.page-template-template-privacy #content,
body.page-template-template-privacy .site-content,
body.page-template-template-privacy .ast-container,
body.page-template-template-privacy .ast-separate-container,
body.page-template-template-privacy #primary,
body.page-template-template-privacy .site-main,
body.page-template-template-privacy .ast-article-single,
body.page-template-template-privacy .ast-article-post,
body.page-template-template-privacy .entry-content,
body.page-template-template-cookies .site,
body.page-template-template-cookies #page,
body.page-template-template-cookies #content,
body.page-template-template-cookies .site-content,
body.page-template-template-cookies .ast-container,
body.page-template-template-cookies .ast-separate-container,
body.page-template-template-cookies #primary,
body.page-template-template-cookies .site-main,
body.page-template-template-cookies .ast-article-single,
body.page-template-template-cookies .ast-article-post,
body.page-template-template-cookies .entry-content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: 0 !important;
}

.site-footer,
.site-below-footer-wrap,
.ast-breadcrumbs-wrapper {
    display: none !important;
}

/* --- Page wrapper: atmosphere + pure viewport-based spacing --- */
.privacy-page {
    direction: ltr;
    text-align: left;
    min-height: 100vh;
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Inter', sans-serif;
    font-size: 15.5px;
    line-height: 1.78;
    padding-block: 8vw 10vw;       /* vertical spacing scales with viewport */
    padding-inline: 10vw;           /* generous side breathing room */
    background:
        radial-gradient(ellipse 60% 50% at 15% 0%, rgba(201, 168, 76, 0.05), transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 100%, rgba(201, 168, 76, 0.04), transparent 60%),
        linear-gradient(180deg, #050505 0%, #0a0a0a 50%, #050505 100%);
    overflow-x: hidden;
}

/* Film-grain overlay */
.privacy-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Vertical accent lines on the sides (very faint) */
.privacy-page::after {
    content: '';
    position: absolute;
    inset: 80px 0;
    background:
        linear-gradient(90deg, rgba(201, 168, 76, 0.08) 0%, transparent 1px) 0 0 / 100% 100% no-repeat,
        linear-gradient(270deg, rgba(201, 168, 76, 0.08) 0%, transparent 1px) 100% 0 / 100% 100% no-repeat;
    pointer-events: none;
    display: none;
}
@media (min-width: 1100px) {
    .privacy-page::after { display: block; }
}

/* --- Document column: pure viewport-based, centered --- */
.privacy-doc {
    width: 100%;
    margin-inline: auto;
    position: relative;
    z-index: 2;
}

/* --- Header --- */
.privacy-doc-header {
    margin-bottom: 64px;
    padding-bottom: 40px;
    text-align: center;
    position: relative;
}

/* Hairline ornament under header */
.privacy-doc-header::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.6), transparent);
}

.privacy-doc-eyebrow {
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 4.5px;
    color: #c9a84c;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 5px 16px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.04);
    backdrop-filter: blur(8px);
}

.privacy-doc-title {
    font-family: 'Audiowide', sans-serif;
    font-size: clamp(38px, 5.5vw, 60px);
    font-weight: 400;
    margin: 6px 0 16px;
    background: linear-gradient(180deg, #fff 0%, #c9a84c 140%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.08;
    letter-spacing: -0.5px;
}

.privacy-doc-meta {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin: 0 0 24px;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}
.privacy-doc-meta strong {
    color: #c9a84c;
    font-weight: 600;
}

.privacy-doc-lead {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.78);
    max-width: 600px;
    margin: 0 auto 14px;
    text-align: left;
    line-height: 1.78;
}
.privacy-doc-lead strong {
    color: #fff;
    font-weight: 600;
}
.privacy-doc-lead abbr {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
    text-decoration: none;
    cursor: help;
}
.privacy-doc-lead a {
    color: #c9a84c;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.35);
    padding-bottom: 1px;
    transition: all 0.2s ease;
}
.privacy-doc-lead a:hover {
    color: #d9b85c;
    border-bottom-color: #d9b85c;
}

/* --- Refined inline pill button (replaces ugly default button) --- */
.legal-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.45);
    color: #c9a84c;
    padding: 11px 24px;
    border-radius: 999px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-top: 28px;
}
.legal-pill-btn:hover,
.legal-pill-btn:focus-visible {
    background: rgba(201, 168, 76, 0.08);
    border-color: #c9a84c;
    color: #d9b85c;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.18);
}
.legal-pill-btn-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}
.legal-pill-btn:hover .legal-pill-btn-arrow {
    transform: translateX(3px);
}

/* --- Table of contents (refined) --- */
.privacy-toc {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 0 0 56px;
    position: relative;
}
.privacy-toc-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 16px;
}
.privacy-toc ol {
    list-style: none;
    counter-reset: toc;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
}
.privacy-toc li {
    counter-increment: toc;
    position: relative;
    padding-left: 36px;
}
.privacy-toc li::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 10.5px;
    color: rgba(201, 168, 76, 0.5);
    font-weight: 600;
    letter-spacing: 1px;
}
.privacy-toc a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 4px 0;
    line-height: 1.4;
}
.privacy-toc a:hover {
    color: #c9a84c;
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .privacy-toc ol { grid-template-columns: 1fr; }
}

/* --- Sections --- */
.privacy-section {
    margin: 48px 0;
    scroll-margin-top: 100px;
}

.privacy-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 18px;
    letter-spacing: 0.5px;
    line-height: 1.25;
    position: relative;
    padding-bottom: 12px;
}

/* Gold hairline under each section heading */
.privacy-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, #c9a84c 0%, rgba(201, 168, 76, 0.1) 100%);
}

.privacy-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 28px 0 12px;
    letter-spacing: 0.2px;
}

.privacy-section p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 15.5px;
    margin: 0 0 16px;
    line-height: 1.78;
}

.privacy-section a {
    color: #c9a84c;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
    padding-bottom: 1px;
    transition: all 0.2s ease;
}
.privacy-section a:hover {
    color: #d9b85c;
    border-bottom-color: #d9b85c;
}

.privacy-section strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.privacy-section em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

.privacy-section code {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c9a84c;
    padding: 1px 7px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Rajdhani', monospace;
    font-size: 12.5px;
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* --- Lists --- */
.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.privacy-list li {
    position: relative;
    padding: 9px 0 9px 24px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
    line-height: 1.7;
}
.privacy-list li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.privacy-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 22px;
    width: 6px;
    height: 1px;
    background: #c9a84c;
}

.privacy-list--services li {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* --- Rights list (numbered cards) --- */
.privacy-rights {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    counter-reset: rights;
}
.privacy-rights li {
    counter-increment: rights;
    position: relative;
    padding: 14px 16px 14px 52px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14.5px;
    line-height: 1.65;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.privacy-rights li:hover {
    border-color: rgba(201, 168, 76, 0.25);
    background: rgba(201, 168, 76, 0.03);
}
.privacy-rights li::before {
    content: counter(rights, decimal-leading-zero);
    position: absolute;
    left: 18px;
    top: 16px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #c9a84c;
    letter-spacing: 1px;
}

/* --- Cookies table --- */
.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 18px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    font-size: 13.5px;
}
.privacy-table th,
.privacy-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.privacy-table thead th {
    background: rgba(201, 168, 76, 0.06);
    color: rgba(201, 168, 76, 0.85);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 10.5px;
}
.privacy-table tbody tr:last-child td {
    border-bottom: none;
}
.privacy-table tbody tr:hover td {
    background: rgba(201, 168, 76, 0.02);
}
.privacy-table tbody td {
    color: rgba(255, 255, 255, 0.76);
}
.privacy-table tbody td:first-child {
    width: 36%;
    min-width: 140px;
}
.privacy-table tbody td:last-child {
    width: 110px;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.3px;
}

/* --- Email link styling --- */
.privacy-email-inline {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
    color: #c9a84c !important;
    font-weight: 500;
}

/* --- Contact card (refined business-card feel) --- */
.privacy-contact-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 22px;
    align-items: start;
    background:
        linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, rgba(201, 168, 76, 0.025) 100%);
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: 18px;
    padding: 30px 32px;
    margin: 48px 0 32px;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}
.privacy-contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(201, 168, 76, 0.1), transparent 60%);
    pointer-events: none;
}
/* Top hairline */
.privacy-contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.6) 50%, transparent);
}
.privacy-contact-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #c9a84c 0%, #b08e3c 100%);
    color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.25);
    position: relative;
    z-index: 1;
}
.privacy-contact-card__icon svg { width: 24px; height: 24px; }
.privacy-contact-card__body { position: relative; z-index: 1; }
.privacy-contact-card__title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
    letter-spacing: 0.4px;
    padding-bottom: 0;
}
.privacy-contact-card__title::after { display: none; }
.privacy-contact-card__desc {
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 22px;
    font-size: 14.5px;
    line-height: 1.65;
}
.privacy-contact-card__details {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.privacy-contact-card__row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}
.privacy-contact-card__row dt {
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    min-width: 110px;
}
.privacy-contact-card__row dd {
    margin: 0;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
}
.privacy-contact-card__email,
.privacy-contact-card__phone {
    color: #c9a84c;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.35);
    padding-bottom: 1px;
    transition: all 0.2s ease;
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}
.privacy-contact-card__email:hover,
.privacy-contact-card__phone:hover {
    color: #d9b85c;
    border-bottom-color: #d9b85c;
}

/* --- Document footer --- */
.privacy-doc-footer {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
.privacy-doc-footnote {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12.5px;
    margin: 8px 0;
    font-style: italic;
    line-height: 1.65;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.privacy-doc-footnote--accent {
    color: rgba(201, 168, 76, 0.6);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 2px;
    font-style: normal;
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 14px;
}

/* --- Copyright row --- */
.legal-doc-copyright-row {
    margin-top: 22px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 11.5px;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.legal-doc-copyright-sep {
    color: rgba(255, 255, 255, 0.18);
}
.legal-doc-copyright-mark {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}
.legal-doc-copyright-cross {
    margin-top: 12px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 12px;
}
.legal-doc-copyright-cross a {
    color: rgba(201, 168, 76, 0.7) !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2) !important;
    padding-bottom: 1px;
    transition: all 0.2s ease;
}
.legal-doc-copyright-cross a:hover {
    color: #c9a84c !important;
    border-bottom-color: #c9a84c !important;
}

/* --- Mobile --- */
@media (max-width: 640px) {
    .privacy-doc-header {
        margin-bottom: 48px;
        padding-bottom: 32px;
    }
    .privacy-toc { padding: 18px 20px; }
    .privacy-section { margin: 36px 0; }
    .privacy-section h2 { font-size: 20px; }
    .privacy-table {
        font-size: 12.5px;
        display: block;
        overflow-x: auto;
    }
    .privacy-table th, .privacy-table td {
        padding: 9px 10px;
    }
    .privacy-table tbody td:first-child,
    .privacy-table tbody td:last-child {
        width: auto;
        min-width: 0;
    }
    .privacy-contact-card {
        grid-template-columns: 1fr;
        padding: 22px 22px;
        gap: 18px;
        margin: 36px 0;
    }
    .privacy-contact-card__icon {
        width: 44px;
        height: 44px;
    }
    .privacy-contact-card__icon svg { width: 22px; height: 22px; }
    .privacy-contact-card__row {
        flex-direction: column;
        gap: 4px;
    }
    .privacy-contact-card__row dt { min-width: 0; }
    .privacy-rights li {
        padding: 14px 16px 14px 50px;
        font-size: 14px;
    }
    .legal-pill-btn {
        font-size: 11px;
        padding: 10px 20px;
        letter-spacing: 1.5px;
    }
}
