/* ============================================================
   GayWhere — Inner pages (privacy, terms, contact)
   Loads AFTER landing.css and builds on its tokens (glass nav,
   footer, fonts, colors all come from landing.css).
   ============================================================ */

/* ---------- page hero ---------- */
.page-hero {
    position: relative;
    padding: 150px 24px 40px;
    overflow: hidden;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 700;
}
.page-hero .page-sub {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 1.02rem;
}
.updated-pill {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 15px;
    border-radius: 999px;
    background: rgba(226, 114, 91, 0.1);
    color: var(--terracotta-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* ---------- TL;DR trust cards (privacy) ---------- */
.tldr {
    max-width: var(--max-w);
    margin: 18px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.tldr-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}
.tldr-card svg {
    width: 20px; height: 20px;
    fill: none;
    stroke: var(--terracotta);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 10px;
}
.tldr-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.93rem;
    font-weight: 650;
    margin-bottom: 4px;
}
.tldr-card p { font-size: 0.8rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.tldr-note {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.78rem;
    color: var(--ink-muted);
    margin: 2px 0 0;
}

/* ---------- document layout (legal pages) ---------- */
.doc-layout {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 40px 24px 90px;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

/* sidebar TOC */
.toc {
    position: sticky;
    top: 96px;
}
.toc-title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 12px;
}
.toc nav { display: flex; flex-direction: column; gap: 2px; }
.toc a {
    display: block;
    padding: 6px 12px;
    border-left: 2px solid var(--border);
    font-size: 0.84rem;
    color: var(--ink-muted);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.toc a:hover { color: var(--ink); }
.toc a.active {
    color: var(--terracotta-dark);
    border-left-color: var(--terracotta);
    font-weight: 600;
}

/* mobile TOC */
.toc-mobile { display: none; }

/* article */
.doc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 44px 48px;
    max-width: 780px;
}
.doc h2 {
    font-size: 1.32rem;
    font-weight: 650;
    margin: 38px 0 14px;
    scroll-margin-top: 100px;
    position: relative;
}
.doc h2:first-of-type { margin-top: 0; }
.doc h3 {
    font-size: 1.02rem;
    font-weight: 650;
    margin: 24px 0 10px;
}
.doc p { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.75; }
.doc ul { margin: 0 0 16px 22px; }
.doc li { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 8px; }
.doc li strong, .doc p strong { color: var(--ink); }
.doc a { color: var(--terracotta-dark); font-weight: 550; text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc hr { border: none; border-top: 1px solid var(--border); margin: 30px 0; }

/* hover anchor on headings */
.h-anchor {
    position: absolute;
    margin-left: 8px;
    opacity: 0;
    color: var(--ink-muted) !important;
    font-weight: 400;
    transition: opacity 0.15s ease;
}
.doc h2:hover .h-anchor { opacity: 1; }

/* ---------- contact page ---------- */
.contact-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 36px 24px 90px;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 860px;
    margin: 0 auto;
}
.contact-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 13px;
    background: rgba(226, 114, 91, 0.1);
    margin-bottom: 14px;
}
.contact-icon svg {
    width: 21px; height: 21px;
    fill: none;
    stroke: var(--terracotta);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contact-icon img { width: 24px; height: 24px; object-fit: contain; }
.contact-card h3 {
    font-size: 1.08rem;
    font-weight: 650;
    margin-bottom: 6px;
}
.contact-card p { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.6; }
.contact-card .card-action {
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--terracotta-dark);
}

.contact-note {
    max-width: 860px;
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(226, 114, 91, 0.07);
    border: 1px solid rgba(226, 114, 91, 0.18);
    border-radius: var(--r-md);
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--ink-soft);
}
.contact-note svg {
    width: 19px; height: 19px;
    fill: none;
    stroke: var(--terracotta);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.contact-note strong { color: var(--ink); }

/* FAQ accordions */
.faq-section {
    max-width: 860px;
    margin: 56px auto 0;
}
.faq-section h2 {
    font-size: 1.45rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 22px;
}
details.faq {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
    overflow: hidden;
}
details.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 17px 20px;
    font-family: var(--font-display);
    font-size: 0.97rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--terracotta);
    font-weight: 500;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body {
    padding: 0 20px 17px;
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.7;
}
details.faq .faq-body a { color: var(--terracotta-dark); font-weight: 550; text-decoration: none; }
details.faq .faq-body a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .doc-layout { grid-template-columns: 1fr; gap: 20px; }
    .toc { display: none; }
    .toc-mobile {
        display: block;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--r-md);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
        margin-bottom: 22px;
    }
    .toc-mobile summary {
        list-style: none;
        cursor: pointer;
        padding: 14px 18px;
        font-family: var(--font-display);
        font-size: 0.92rem;
        font-weight: 650;
    }
    .toc-mobile summary::-webkit-details-marker { display: none; }
    .toc-mobile nav { display: flex; flex-direction: column; padding: 0 10px 12px; }
    .toc-mobile nav a {
        padding: 8px 10px;
        font-size: 0.88rem;
        color: var(--ink-soft);
        text-decoration: none;
        border-radius: 8px;
    }
    .toc-mobile nav a:hover { background: var(--bg-soft); color: var(--ink); }
    .doc { padding: 30px 24px; }
    .tldr { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .page-hero { padding: 128px 20px 28px; }
    .contact-grid { grid-template-columns: 1fr; }
    .tldr { grid-template-columns: 1fr; }
}
