/* ============================================
   UPGRADSKILL — Privacy Policy Page Styles
   Matching the editorial aesthetic of main site
   ============================================ */

:root {
    --ink: #0a1628;
    --ink-soft: #1a2a42;
    --ink-light: #2d4060;
    --cream: #f4f0e8;
    --cream-soft: #faf7f1;
    --cream-dark: #e8e2d4;
    --gold: #c9a961;
    --gold-bright: #e0bc6d;
    --accent: #d4574a;
    --muted: #6b7a8f;
    --line: rgba(10, 22, 40, 0.12);
    --line-light: rgba(10, 22, 40, 0.08);

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter Tight', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --container: 1280px;
    --radius: 4px;
    --radius-lg: 8px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ============================================
   NAVIGATION (matches main site)
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    background: var(--cream);
    border-bottom: 1px solid transparent;
    z-index: 90;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(244, 240, 232, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--ink);
    color: var(--cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
}

.logo-text { color: var(--ink); }
.logo-dot { color: var(--gold); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    margin-left: auto;
}

.nav-links a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; gap: 12px; align-items: center; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
    background: var(--ink);
    color: var(--cream);
}

.btn-primary:hover {
    background: var(--ink-soft);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.2);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: all 0.3s;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ============================================
   PRIVACY HERO
   ============================================ */
.pp-hero {
    position: relative;
    padding: 80px 40px 100px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
}

.pp-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 22, 40, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 22, 40, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
}

.pp-hero-container {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 28px;
}

.eyebrow-line {
    width: 36px;
    height: 1px;
    background: var(--gold);
}

.pp-hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 20px;
    font-variation-settings: "opsz" 120;
}

.pp-hero-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--gold);
}

.pp-hero-sub {
    font-size: 19px;
    line-height: 1.6;
    color: var(--ink-light);
    max-width: 520px;
    margin: 0 auto 28px;
}

.pp-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.pp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pp-meta-item svg { opacity: 0.6; }

.pp-meta-divider {
    opacity: 0.3;
    font-size: 18px;
}

/* ============================================
   CONTENT LAYOUT
   ============================================ */
.pp-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 40px 120px;
}

.pp-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 80px;
    align-items: flex-start;
}

/* ============================================
   SIDEBAR / TABLE OF CONTENTS
   ============================================ */
.pp-sidebar {
    position: sticky;
    top: 100px;
}

.pp-toc {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pp-toc-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
    padding-left: 2px;
}

.pp-toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-light);
    transition: all 0.25s ease;
    position: relative;
}

.pp-toc-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: var(--gold);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.pp-toc-link:hover {
    color: var(--ink);
    background: rgba(10, 22, 40, 0.03);
}

.pp-toc-link.active {
    color: var(--ink);
    background: rgba(201, 169, 97, 0.08);
}

.pp-toc-link.active::before {
    height: 60%;
}

.pp-toc-num {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
    opacity: 0.6;
    min-width: 18px;
}

.pp-toc-link.active .pp-toc-num {
    color: var(--gold);
    opacity: 1;
}

/* ============================================
   INTRO CARD
   ============================================ */
.pp-intro-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 28px;
    background: var(--ink);
    border-radius: var(--radius-lg);
    margin-bottom: 60px;
    color: var(--cream);
}

.pp-intro-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(201, 169, 97, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
}

.pp-intro-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--cream);
}

.pp-intro-text p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--cream);
    opacity: 0.75;
}

/* ============================================
   SECTIONS
   ============================================ */
.pp-section {
    margin-bottom: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line-light);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(.22, 1, .36, 1);
}

.pp-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.pp-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pp-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.pp-section-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 32px;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.pp-section-header h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.pp-section-body p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-light);
    margin-bottom: 16px;
    max-width: 640px;
}

.pp-section-body p:last-child { margin-bottom: 0; }

.pp-section-body p strong {
    color: var(--ink);
    font-weight: 600;
}

/* ============================================
   DATA COLLECTION CARDS
   ============================================ */
.pp-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.pp-data-card {
    background: var(--cream-soft);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s cubic-bezier(.22, 1, .36, 1);
}

.pp-data-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pp-data-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(10, 22, 40, 0.1);
}

.pp-data-icon {
    width: 40px;
    height: 40px;
    background: rgba(201, 169, 97, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 14px;
}

.pp-data-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 4px;
}

.pp-data-desc {
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.4;
}

/* ============================================
   USAGE LIST
   ============================================ */
.pp-usage-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.pp-usage-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--cream-soft);
    border-radius: 6px;
    font-size: 15px;
    color: var(--ink);
    font-weight: 450;
    transition: background 0.2s ease;
}

.pp-usage-item:hover {
    background: var(--cream-dark);
}

.pp-usage-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

/* ============================================
   HIGHLIGHT BOX
   ============================================ */
.pp-highlight-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: rgba(201, 169, 97, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.pp-highlight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(201, 169, 97, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.pp-highlight-box p {
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 0 !important;
}

/* ============================================
   RIGHTS GRID
   ============================================ */
.pp-rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.pp-right-card {
    background: var(--cream-soft);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s cubic-bezier(.22, 1, .36, 1);
}

.pp-right-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pp-right-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(10, 22, 40, 0.1);
}

.pp-right-icon {
    color: var(--gold);
    margin-bottom: 4px;
}

.pp-right-card strong {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
}

.pp-right-card span {
    font-size: 13.5px;
    color: var(--ink-light);
    line-height: 1.5;
}

/* ============================================
   CONTACT CARD
   ============================================ */
.pp-contact-card {
    margin-top: 20px;
    padding: 22px 24px;
    background: var(--cream-soft);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-lg);
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
}

.pp-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--ink-light);
}

.pp-contact-row a {
    color: var(--ink);
    font-weight: 600;
    border-bottom: 1px solid var(--gold);
    transition: color 0.2s;
}

.pp-contact-row a:hover { color: var(--gold); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--ink);
    color: var(--cream);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--cream);
    opacity: 0.55;
    text-align: center;
    width: 100%;
}

/* ============================================
   RESPONSIVE — TABLET (<1024px)
   ============================================ */
@media (max-width: 1024px) {
    .nav-container { padding: 18px 28px; }
    .nav-links { gap: 24px; }

    .pp-layout {
        grid-template-columns: 200px 1fr;
        gap: 48px;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (<768px)
   ============================================ */
@media (max-width: 768px) {
    .nav-container { padding: 16px 20px; gap: 12px; }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        border-bottom: 1px solid var(--line);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        box-shadow: 0 20px 40px -10px rgba(10, 22, 40, 0.15);
        z-index: 100;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-cta { display: none; }
    .menu-toggle { display: block; }

    .pp-hero { padding: 60px 20px 70px; }
    .pp-hero-title { font-size: clamp(40px, 10vw, 56px); }
    .pp-hero-sub { font-size: 16px; }

    .pp-content { padding: 48px 20px 80px; }

    .pp-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pp-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 48px;
        padding-bottom: 32px;
        border-bottom: 1px solid var(--line-light);
    }

    .pp-toc {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .pp-toc-label {
        width: 100%;
        margin-bottom: 8px;
    }

    .pp-toc-link {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 50px;
        background: rgba(10, 22, 40, 0.03);
    }

    .pp-toc-link::before { display: none; }

    .pp-toc-link.active {
        background: rgba(201, 169, 97, 0.12);
    }

    .pp-toc-num { display: none; }

    .pp-intro-card {
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
    }

    .pp-section-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .pp-section-num { font-size: 24px; }
    .pp-section-header h2 { font-size: 24px; }

    .pp-data-grid,
    .pp-rights-grid {
        grid-template-columns: 1fr;
    }

    .pp-meta {
        flex-direction: column;
        gap: 8px;
    }

    .pp-meta-divider { display: none; }

    .footer-bottom { padding: 16px 20px; }
}

/* ============================================
   MOTION REDUCED PREFERENCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
