/* Terms Services Page Styles - Scoped to #page-content */

/* CSS Variables */
#page-content {
    --accent: #32a930;
    --ink: #1b1f23;
    --muted: #6a6f76;
    --line: #e5e9ee;
    --bg: #ffffff;
    --radius: 14px;
    --max: 900px;
    --measure: 72ch;
    --lh: 1.72;
    --h1: clamp(26px, 4.2vw, 34px);
    --h2: clamp(18px, 2.4vw, 22px);
    --small: 13px;
}

#page-content a {
    color: var(--accent);
    text-underline-offset: 2px;
    text-decoration: underline;
}

#page-content a:hover {
    text-decoration-thickness: 2px;
}

/* Page / Content */
#page-content .page {
    max-width: var(--max);
    margin: 160px auto 90px;
    padding: 0 6%;
}

#page-content .prose {
    max-width: var(--measure);
    font-family: "Cabin", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
    font-size: 16px;
    line-height: var(--lh);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    counter-reset: sect;
}

/* Typography */
#page-content .prose h1 {
    font-size: var(--h1);
    line-height: 1.15;
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: .2px;
}

#page-content .meta {
    color: var(--muted);
    font-size: var(--small);
    margin: 0 0 22px;
}

#page-content .prose h2 {
    counter-increment: sect;
    font-size: var(--h2);
    line-height: 1.3;
    margin: 28px 0 10px;
    font-weight: 600;
    letter-spacing: .15px;
    position: relative;
}

#page-content .prose h2::before {
    content: counter(sect) ". ";
    color: var(--muted);
    font-weight: 700;
    margin-right: 2px;
}

#page-content .prose h2 .anchor {
    position: absolute;
    left: -1.2em;
    top: 0;
    opacity: 0;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
}

#page-content .prose h2:hover .anchor {
    opacity: .9;
}

#page-content .prose p {
    margin: 0 0 14px;
    max-width: var(--measure);
}

#page-content .prose ul,
#page-content .prose ol {
    margin: 0 0 16px 22px;
    max-width: var(--measure);
}

#page-content .prose li {
    margin: 6px 0;
}

/* Notices / Divider */
#page-content .notice {
    background: #f6fff8;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    padding: 12px 14px;
    border-radius: var(--radius);
    margin: 18px 0;
}

#page-content .divider {
    height: 1px;
    background: var(--line);
    margin: 24px 0;
}

/* Switcher (top buttons) */
#page-content .switcher {
    display: flex;
    gap: 10px;
    margin: 0 0 20px;
    flex-wrap: wrap;
}

#page-content .btn {
    appearance: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

#page-content .btn.primary {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
}

#page-content .btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
    #page-content .page {
        margin: 120px auto 60px;
        padding: 0 16px;
    }
}

