/* ============================================================
   Terms of Service & Privacy Policy Page
   ============================================================ */

.tos-page {
    --tos-ink: #1f2d3d;
    --tos-teal: #0da7ac;
    --tos-teal-deep: #0a8fa4;
    --tos-teal-darker: #074447;
    --tos-foam: #eafcfb;
    --tos-line: #e9ecef;
    --tos-muted: #6c757d;

    color: var(--tos-ink);
}

.tos-eyebrow {
    display: inline-block;
    margin-bottom: 10px;

    color: var(--tos-teal-deep);

    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Hero */

.tos-hero {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px 32px;

    text-align: center;
}

.tos-hero h1 {
    margin: 0 0 10px;

    font-size: 34px;
    font-weight: 800;
}

.tos-hero p {
    margin: 0;

    color: var(--tos-muted);

    font-size: 15px;
    line-height: 1.6;
}

.tos-updated {
    margin-top: 10px !important;

    font-size: 13px !important;
    font-style: italic;
}

/* Layout */

.tos-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;

    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 72px;
}

/* Table of contents */

.tos-toc {
    position: sticky;
    top: 24px;

    display: flex;
    flex-direction: column;
    gap: 4px;

    align-self: start;

    padding: 18px;

    background: #fff;

    border: 1px solid var(--tos-line);
    border-radius: 14px;

    box-shadow: 0 4px 14px rgba(10, 110, 116, 0.06);
}

.tos-toc-title {
    margin-bottom: 8px;

    color: var(--tos-muted);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tos-toc a {
    padding: 6px 8px;

    color: var(--tos-ink);

    border-radius: 8px;

    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;

    transition: background-color 0.15s ease, color 0.15s ease;
}

.tos-toc a:hover {
    color: var(--tos-teal-darker);
    background: var(--tos-foam);
}

/* Content */

.tos-content {
    min-width: 0;
}

.tos-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 32px;
    padding: 16px 18px;

    background: #fef3c7;

    border: 1px solid #fbd97a;
    border-radius: 12px;

    color: #78350f;

    font-size: 13.5px;
    line-height: 1.6;
}

.tos-notice i {
    margin-top: 2px;

    font-size: 15px;
}

.tos-content section {
    margin-bottom: 36px;
    padding-top: 6px;

    scroll-margin-top: 24px;
}

.tos-content h2 {
    margin: 0 0 12px;

    padding-bottom: 10px;

    border-bottom: 1px solid var(--tos-line);

    font-size: 19px;
    font-weight: 800;
}

.tos-content h3 {
    margin: 20px 0 8px;

    color: var(--tos-teal-darker);

    font-size: 14.5px;
    font-weight: 700;
}

.tos-content p {
    margin: 0 0 12px;

    color: #445;

    font-size: 14.5px;
    line-height: 1.75;
}

.tos-content ul {
    margin: 0 0 12px;
    padding-left: 22px;

    color: #445;

    font-size: 14.5px;
    line-height: 1.8;
}

.tos-content li {
    margin-bottom: 4px;
}

.tos-content strong {
    color: var(--tos-ink);
}

.tos-placeholder {
    display: inline;

    padding: 2px 6px;

    background: #fef3c7;
    color: #92400e;

    border-radius: 4px;

    font-size: 13px;
    font-weight: 600;
}

/* Mobile */

@media (max-width: 860px) {
    .tos-layout {
        grid-template-columns: 1fr;
    }

    .tos-toc {
        position: static;

        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2px 10px;
    }

    .tos-toc-title {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .tos-hero {
        padding: 40px 20px 24px;
    }

    .tos-hero h1 {
        font-size: 26px;
    }

    .tos-toc {
        grid-template-columns: 1fr;
    }

    .tos-content h2 {
        font-size: 17px;
    }
}
