/* TrailKeeps Shared Site Styles — Dark Gallery Design System
   Palette: Rich midnight slate (#090D16 / #0F1626) with signature trail orange (#FF6A00)
   Shared across Landing Page (/), Order Confirmation (/order-confirmed/), and Legal (/legal/).
*/

:root {
    /* Base canvas & dark surfaces matching trailkeeps.com */
    --background: #090D16;
    --background-deep: #060910;
    --card: #0F1626;
    --card-surface: #131B2E;
    --card-hover: #18233A;
    --popover: #0C121E;
    --secondary: #19212F;
    --secondary-hover: #222D3E;

    /* Text hierarchy */
    --foreground: #F4F6FA;
    --foreground-soft: #CBD5E1;
    --foreground-muted: #94A3B8;
    --foreground-subtle: #64748B;

    /* Signature TrailKeeps brand accents */
    --primary: #FF6A00;
    --primary-glow: #FF8533;
    --primary-soft: rgba(255, 106, 0, 0.12);
    --primary-subtle: rgba(255, 106, 0, 0.05);

    /* Cool blue accent for geographic highlights */
    --accent: #0077FF;
    --accent-glow: #4DD2FF;
    --accent-soft: rgba(0, 119, 255, 0.12);

    /* Functional states */
    --success: #10B981;
    --success-soft: rgba(16, 185, 129, 0.14);
    --warning: #F59E0B;
    --warning-soft: rgba(245, 158, 11, 0.14);
    --danger: #EF4444;
    --danger-soft: rgba(239, 68, 68, 0.14);

    /* Subtle slate borders */
    --border: #1E293B;
    --border-strong: #334155;
    --border-subtle: rgba(255, 255, 255, 0.06);

    /* Focus & interaction */
    --focus: #FF6A00;
    --focus-ring: rgba(255, 106, 0, 0.35);

    /* Gradients */
    --gradient-sunrise: linear-gradient(135deg, #FF6A00 0%, #FF8533 100%);
    --gradient-card: linear-gradient(145deg, #131B2E 0%, #0F1626 100%);
    --gradient-card-subtle: linear-gradient(145deg, rgba(19, 27, 46, 0.6) 0%, rgba(15, 22, 38, 0.6) 100%);
    --gradient-card-elevated: linear-gradient(145deg, rgba(25, 36, 60, 0.7) 0%, rgba(16, 23, 38, 0.8) 100%);
    --gradient-dark: linear-gradient(180deg, #0C121E 0%, #060910 100%);

    /* Elevation shadows */
    --shadow-soft: 0 4px 20px -4px rgba(0, 0, 0, 0.35);
    --shadow-medium: 0 8px 30px -8px rgba(0, 0, 0, 0.5);
    --shadow-strong: 0 20px 50px -15px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 4px 20px -2px rgba(255, 106, 0, 0.4);
    --shadow-glow-subtle: 0 0 16px rgba(255, 106, 0, 0.2);

    /* Typography */
    --font-display: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;

    /* Layout dimensions */
    --header-height: 72px;
    --container-max: 1200px;
    --container-narrow: 840px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

[hidden] {
    display: none !important;
}

/* ----------------------------------------------------------- Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 16px;
}

/* -------------------------------------------------------------- Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--foreground);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    letter-spacing: -0.015em;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

p {
    color: var(--foreground-soft);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--primary-glow);
}

code, kbd, samp, pre {
    font-family: var(--font-mono);
}

.lead {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--foreground-soft);
}

.text-muted {
    color: var(--foreground-muted);
}
.text-subtle {
    color: var(--foreground-subtle);
}
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

/* --------------------------------------------------------------- Layout */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px auto;
}
.section-header .eyebrow {
    margin-bottom: 12px;
}
.section-header .section-title {
    margin-bottom: 16px;
}
.section-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--foreground-muted);
}

.grid {
    display: grid;
    gap: 24px;
}
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .section {
        padding-top: 56px;
        padding-bottom: 56px;
    }
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ------------------------------------------------------------- Site Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    height: var(--header-height);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--foreground);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}
.brand:hover {
    color: var(--foreground);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--primary);
}
.brand-mark svg {
    width: 100%;
    height: 100%;
}

.brand-name {
    color: var(--foreground);
}
.brand-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-left: 4px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    color: var(--foreground-soft);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    transition: color 0.15s ease;
}
.nav-link:hover,
.nav-link.active,
.nav-link[aria-current="page"] {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.preview-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--foreground);
    cursor: pointer;
}
.nav-toggle svg {
    width: 22px;
    height: 22px;
}

/* Mobile drawer */
.mobile-drawer {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 13, 22, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    padding: 24px;
    overflow-y: auto;
}
.mobile-drawer.is-open {
    display: block;
}
.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.mobile-nav-links .nav-link {
    font-size: 1.25rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    display: block;
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
    }
    .nav-toggle {
        display: inline-flex;
    }
}

/* ------------------------------------------------------------- Site Footer */
.site-footer {
    margin-top: auto;
    background: var(--background-deep);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px 0;
    color: var(--foreground-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col-brand .brand {
    margin-bottom: 12px;
}
.footer-tagline {
    font-size: 0.95rem;
    color: var(--foreground-muted);
    max-width: 320px;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--foreground-muted);
    transition: color 0.2s, background 0.2s;
}
.footer-social a:hover {
    color: var(--primary);
    background: rgba(255, 106, 0, 0.12);
}
.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: var(--foreground-muted);
    font-size: 0.9rem;
    transition: color 0.15s ease;
}
.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--foreground-subtle);
}
.footer-bottom a {
    color: var(--foreground-muted);
}
.footer-bottom a:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ------------------------------------------------------ Reusable Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1.4;
    white-space: nowrap;
}
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.btn-primary {
    background: var(--gradient-sunrise);
    color: #FFFFFF;
    border-color: rgba(255, 106, 0, 0.4);
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #FF8533 0%, #FF994D 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 24px -2px rgba(255, 106, 0, 0.55);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--card-surface);
    color: var(--foreground);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: var(--card-hover);
    border-color: var(--border-strong);
    color: var(--foreground);
}

.btn-outline {
    background: transparent;
    color: var(--foreground-soft);
    border-color: var(--border-strong);
}
.btn-outline:hover {
    background: var(--secondary);
    color: var(--foreground);
    border-color: var(--foreground-muted);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.card-surface {
    background: var(--card-surface);
}

.card-glow {
    position: relative;
    overflow: hidden;
}
.card-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.4), transparent);
}

.card-interactive {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card-interactive:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-medium);
}

/* Badges & Pills */
.pill, .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary, .pill-primary {
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(255, 106, 0, 0.25);
}

.badge-accent, .pill-accent {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(0, 119, 255, 0.25);
}

.badge-success, .pill-success {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 8px;
}

/* ------------------------------------------------- Pricing Tier Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-subtle);
}
.pricing-card.popular .badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 14px;
    border-radius: 9999px;
}

.pricing-header {
    margin-bottom: 24px;
}
.pricing-tier {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 8px;
}
.pricing-desc {
    font-size: 0.9rem;
    color: var(--foreground-muted);
    min-height: 44px;
}

.pricing-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}
.pricing-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}
.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--foreground);
    font-family: var(--font-display);
    line-height: 1;
}
.pricing-period {
    font-size: 0.9rem;
    color: var(--foreground-subtle);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
    flex-grow: 1;
}
.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--foreground-soft);
}
.pricing-feature svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-card .btn {
    width: 100%;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---------------------------------------------------- Showcase Gallery Cards */
.gallery-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.gallery-visual {
    background: var(--background-deep);
    position: relative;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
}
.gallery-visual svg {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.gallery-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.gallery-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.gallery-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--foreground-muted);
    margin-bottom: 12px;
}
.gallery-desc {
    font-size: 0.9rem;
    color: var(--foreground-soft);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ---------------------------------------------------- FAQ Disclosures */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

details.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease;
}
details.faq-item[open] {
    border-color: var(--border-strong);
    background: var(--card-surface);
}

summary.faq-question {
    padding: 20px 24px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--foreground);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
summary.faq-question::-webkit-details-marker {
    display: none;
}
summary.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.2s ease;
}
details.faq-item[open] summary.faq-question::after {
    content: '−';
    transform: rotate(0deg);
}

.faq-answer {
    padding: 0 24px 20px 24px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--foreground-soft);
}

/* ---------------------------------------------------- Order Confirmed Page */
.order-confirmation-wrap {
    padding: 60px 0;
    max-width: 760px;
    margin: 0 auto;
}

.order-badge-hero {
    text-align: center;
    margin-bottom: 40px;
}
.order-check-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}
.order-check-icon svg {
    width: 32px;
    height: 32px;
}

.order-ref-card {
    background: var(--card-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}
.order-ref-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground-subtle);
    margin-bottom: 4px;
}
.order-ref-val {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.order-details-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}
.order-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.spec-label {
    font-size: 0.8rem;
    color: var(--foreground-subtle);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.fulfillment-timeline {
    position: relative;
    padding-left: 32px;
    margin-top: 28px;
}
.fulfillment-timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 11px;
    width: 2px;
    background: var(--border-strong);
}
.timeline-step {
    position: relative;
    padding-bottom: 28px;
}
.timeline-step:last-child {
    padding-bottom: 0;
}
.timeline-step-dot {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--foreground-muted);
}
.timeline-step.active .timeline-step-dot {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}
.timeline-step.complete .timeline-step-dot {
    border-color: var(--success);
    color: var(--success);
    background: var(--success-soft);
}
.timeline-step-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 4px;
}
.timeline-step-desc {
    font-size: 0.85rem;
    color: var(--foreground-muted);
}

/* ------------------------------------------------------ Legal Layout */
.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
    padding: 60px 0;
}

.legal-nav-sticky {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}
.legal-nav-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground-subtle);
    margin-bottom: 12px;
}
.legal-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.legal-nav-list a {
    color: var(--foreground-muted);
    font-size: 0.9rem;
    display: block;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}
.legal-nav-list a:hover,
.legal-nav-list a.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.policy-section {
    scroll-margin-top: calc(var(--header-height) + 24px);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.policy-section h2 {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}
.policy-section h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}
.policy-section p, .policy-section ul {
    margin-bottom: 16px;
    color: var(--foreground-soft);
}
.policy-section ul {
    padding-left: 24px;
}
.policy-section li {
    margin-bottom: 8px;
}

@media (max-width: 840px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .legal-nav-sticky {
        position: static;
    }
}
