/* ============================================================================
   legal.css — shared styling for Behov's standalone content pages
   (Privacy Policy, Terms & Conditions, Community Guidelines, Cookie Policy,
   Pricing). Self-contained on purpose: these pages do NOT load the big SPA
   styles.css, so they render fast and stay readable without the app's JS.
   Brand tokens mirror styles.css :root.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --color-green: #0b704b;
    --color-blue: #428fd3;
    --color-gray: #333333;
    --color-white: #ffffff;
    --color-gold: #c79a3a;
    --color-gold-dark: #a87d28;
    --ink-soft: #5a6168;
    --line: #e6e8eb;
    --bg-soft: #f6f8fa;
    --radius: 12px;
    --maxw: 860px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.65;
    color: var(--color-gray);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

/* ---- Header ---- */
.doc-header {
    border-bottom: 1px solid var(--line);
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 10;
}
.doc-header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.doc-header .brand img { height: 34px; display: block; }
.doc-header nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 1.1rem;
}
.doc-header nav a:hover { color: var(--color-blue); }

/* ---- Document body ---- */
.doc-wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}
.doc-wrap h1 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--color-gray);
}
.doc-updated {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin: 0 0 2rem;
}
.doc-wrap h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2.2rem 0 0.6rem;
    color: var(--color-green);
}
.doc-wrap h3 {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 1.4rem 0 0.4rem;
}
.doc-wrap p, .doc-wrap li { font-size: 0.96rem; }
.doc-wrap ul, .doc-wrap ol { padding-left: 1.3rem; }
.doc-wrap li { margin: 0.3rem 0; }
.doc-wrap a { color: var(--color-blue); }
.doc-wrap strong { font-weight: 600; }

.doc-callout {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-left: 4px solid var(--color-gold);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.doc-toc {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 0 0 2rem;
}
.doc-toc h2 { margin: 0 0 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.doc-toc ol { margin: 0; }

/* ---- Pricing tiers ---- */
.tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}
.tier {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.3rem;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
}
.tier.featured {
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(199, 154, 58, 0.15);
}
.tier-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
    color: var(--color-gold-dark);
    background: #fdf6e6;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.6rem;
}
.tier h3 { margin: 0 0 0.2rem; font-size: 1.25rem; color: var(--color-green); }
.tier .price { font-size: 1.45rem; font-weight: 700; margin: 0.1rem 0 0.2rem; }
.tier .price span { font-size: 0.85rem; font-weight: 400; color: var(--ink-soft); }
.tier .tier-note { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 0.9rem; }
.tier ul { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.tier ul li { position: relative; padding-left: 1.4rem; margin: 0.5rem 0; font-size: 0.9rem; }
.tier ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: 700;
}
.tier .inherits { font-size: 0.85rem; font-weight: 600; color: var(--color-gray); margin: 0.2rem 0 0.3rem; }

.program {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.4rem;
    margin: 1.5rem 0;
    background: var(--bg-soft);
}
.program h2 { margin-top: 0; }

/* ---- Doc page sub-nav (tab strip under the logo bar) ---- */
.doc-subnav {
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--line);
    background: var(--color-white);
    overflow-x: auto;
    scrollbar-width: none;
}
.doc-subnav::-webkit-scrollbar { display: none; }
.doc-subnav a {
    padding: 0.6rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2.5px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
}
.doc-subnav a:hover { color: var(--color-green); }
.doc-subnav a.active {
    color: var(--color-green);
    border-bottom-color: var(--color-green);
    font-weight: 700;
}
.doc-subnav .doc-nav-close {
    margin-left: auto;
    color: var(--ink-soft);
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    border-left: 1px solid var(--line);
}
.doc-subnav .doc-nav-close:hover { color: #c0392b; border-bottom-color: transparent !important; }

/* ---- Pre-launch announcement banner ---- */
.pre-launch-banner {
    border: 2px solid var(--color-green);
    border-radius: var(--radius);
    padding: 1.3rem 1.6rem;
    margin: 0.5rem 0 2rem;
    text-align: center;
    background: rgba(11, 112, 75, 0.04);
}
.pre-launch-banner p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-green);
    line-height: 1.4;
}
.pre-launch-banner small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--ink-soft);
}

/* ---- Footer ---- */
.doc-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
    color: var(--ink-soft);
    font-size: 0.85rem;
}
.doc-footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 2rem 1.25rem;
    text-align: center;
}
.doc-footer a { color: var(--ink-soft); text-decoration: none; margin: 0 0.5rem; white-space: nowrap; }
.doc-footer a:hover { color: var(--color-blue); }
.doc-footer .doc-footer-links { margin-bottom: 0.8rem; line-height: 2; }
