/* ==========================================================================
   Academox — policy pages (privacy, terms, refund, shipping, contact, pricing)
   Loaded after styles.css; reuses its tokens, adds only document layout.
   ========================================================================== */

/* ---------- Slim header ---------- */
.policy-head {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.policy-head-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.policy-head .back {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

    .policy-head .back:hover {
        color: var(--orange-ink);
    }

/* ---------- Document ---------- */
.policy {
    background: var(--cream);
    padding: 56px 0 96px;
}

.policy .container {
    max-width: var(--readw);
}

.policy-title {
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0;
}

.policy-meta {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-soft);
}

.policy-intro {
    margin-top: 18px;
    font-size: 18px;
    color: var(--text-muted);
}

.policy-doc {
    margin-top: 40px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(24px, 5vw, 48px);
}

    .policy-doc > :first-child {
        margin-top: 0;
    }

    .policy-doc h2 {
        font-size: 22px;
        line-height: 1.3;
        letter-spacing: -0.01em;
        margin: 42px 0 0;
        padding-top: 26px;
        border-top: 1px solid var(--line);
    }

    .policy-doc > h2:first-of-type {
        border-top: 0;
        padding-top: 0;
        margin-top: 0;
    }

    .policy-doc h3 {
        font-size: 17px;
        margin: 26px 0 0;
    }

    .policy-doc p,
    .policy-doc li {
        font-size: 16px;
        line-height: 1.72;
        color: var(--text-muted);
    }

    .policy-doc p {
        margin: 14px 0 0;
    }

    .policy-doc ul,
    .policy-doc ol {
        margin: 14px 0 0;
        padding-left: 22px;
    }

    .policy-doc li {
        margin-top: 8px;
    }

    .policy-doc a {
        color: var(--orange-ink);
    }

    .policy-doc strong {
        color: var(--text);
    }

/* ---------- Table of contents ---------- */
.policy-toc {
    margin-top: 28px;
    padding: 18px 22px;
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

    .policy-toc h2 {
        font-size: 12.5px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--orange-ink);
        margin: 0 0 10px;
    }

    .policy-toc ol {
        margin: 0;
        padding-left: 20px;
        columns: 2;
        column-gap: 28px;
    }

    .policy-toc li {
        font-size: 14.5px;
        margin-top: 4px;
        break-inside: avoid;
    }

@media (max-width: 560px) {
    .policy-toc ol {
        columns: 1;
    }
}

.policy-doc h2[id],
.policy-doc h3[id] {
    scroll-margin-top: 92px;
}

/* ---------- Identity / contact block ---------- */
.identity {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.identity-item {
    background: var(--cream-2);
    padding: 16px 20px;
}

    .identity-item dt {
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-soft);
    }

    .identity-item dd {
        margin: 6px 0 0;
        font-size: 16px;
        font-weight: 600;
        color: var(--text);
        overflow-wrap: anywhere;
    }

    .identity-item dd a {
        color: var(--orange-ink);
    }

/* ---------- Callout ---------- */
.policy-note {
    margin-top: 22px;
    padding: 16px 20px;
    background: var(--orange-soft);
    border-radius: var(--radius-sm);
}

    .policy-note p {
        color: var(--ink-2);
        margin-top: 0;
    }

    .policy-note p + p {
        margin-top: 10px;
    }

/* ---------- Plain data table (pricing) ---------- */
.policy-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    font-size: 15.5px;
}

    .policy-table th,
    .policy-table td {
        text-align: left;
        padding: 12px 14px;
        border-bottom: 1px solid var(--line);
        color: var(--text-muted);
    }

    .policy-table th {
        font-size: 12.5px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-soft);
        background: var(--cream-2);
    }

    .policy-table td strong {
        color: var(--text);
    }

/* ---------- Cross-links between policies ---------- */
.policy-nav {
    margin-top: 36px;
}

    .policy-nav h2 {
        font-size: 12.5px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--text-soft);
        margin: 0 0 14px;
    }

    .policy-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .policy-nav a {
        display: inline-block;
        padding: 9px 16px;
        border-radius: 999px;
        border: 1px solid var(--line-strong);
        background: var(--white);
        font-size: 14.5px;
        font-weight: 600;
        color: var(--text-muted);
        text-decoration: none;
    }

        .policy-nav a:hover {
            border-color: var(--orange);
            color: var(--orange-ink);
        }

        .policy-nav a[aria-current="page"] {
            background: var(--ink);
            border-color: var(--ink);
            color: #fff;
        }

/* ---------- Compact footer ---------- */
.policy-foot {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    padding: 40px 0;
    font-size: 14.5px;
}

    .policy-foot a {
        color: #fff;
    }

    .policy-foot ul {
        list-style: none;
        margin: 0 0 16px;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 8px 22px;
    }

    .policy-foot p {
        margin: 0;
    }

    .policy-foot .policy-foot-note {
        margin-top: 8px;
        color: rgba(255, 255, 255, 0.52);
        max-width: 60ch;
    }
