/* ==========================================================================
   NEXVORK LEGAL PAGES — Privacy, Terms, Refund, Cookies
   Shared, readable, professional typography for policy content.
   All classes prefixed `lg-` to avoid clashes with other page styles.
   Reuses color tokens from index.css so dark/light theme works automatically.
   ========================================================================== */

.lg-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 768px) {
    .lg-container { padding: 0 18px; }
}

/* ----- Hero ----- */
.lg-hero {
    padding: 140px 0 60px;
    position: relative;
    border-bottom: 1px solid var(--border);
}
.lg-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 28px;
}
.lg-hero-eyebrow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #823E9D;
}
.lg-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: var(--text);
}
.lg-hero-sub {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0;
}
.lg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.lg-meta strong { color: var(--text); font-weight: 600; }

/* ----- Body ----- */
.lg-body { padding: 60px 0 100px; }

.lg-body h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 48px 0 16px;
    color: var(--text);
    scroll-margin-top: 100px;
}
.lg-body h2:first-child { margin-top: 0; }
.lg-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 28px 0 10px;
    color: var(--text);
}
.lg-body p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0 0 16px;
}
.lg-body ul, .lg-body ol {
    padding-left: 22px;
    margin: 0 0 16px;
}
.lg-body li {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.lg-body a {
    color: #823E9D;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.lg-body a:hover { opacity: 0.8; }
.lg-body strong { color: var(--text); font-weight: 600; }

/* Highlight callout */
.lg-callout {
    margin: 28px 0;
    padding: 20px 22px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 3px solid #823E9D;
    border-radius: 8px;
}
.lg-callout p:last-child { margin-bottom: 0; }

/* Contact card at end */
.lg-contact-card {
    margin-top: 56px;
    padding: 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.lg-contact-card h3 {
    margin-top: 0;
    font-size: 1.15rem;
}
.lg-contact-card p { margin-bottom: 10px; }
.lg-contact-card .lg-contact-row {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: 0.95rem;
}
.lg-contact-card .lg-contact-row strong { min-width: 90px; display: inline-block; }

/* Table of contents */
.lg-toc {
    margin: 0 0 40px;
    padding: 22px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.lg-toc-title {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.lg-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 24px;
}
@media (max-width: 600px) {
    .lg-toc ul { columns: 1; }
}
.lg-toc li {
    margin: 6px 0;
    break-inside: avoid;
}
.lg-toc a {
    font-size: 0.92rem;
    color: var(--text-muted);
    text-decoration: none;
}
.lg-toc a:hover { color: #823E9D; }
