/* Policy pages (Privacy, Terms, Cookies, Account Deletion).
   Reuses the site's theme tokens from style.css (--primary-color, etc.) so these
   legal pages read as part of the same product, not a bolted-on markdown dump. */

/* ---------- Hero ---------- */

.policy-hero {
    background: linear-gradient(135deg, var(--primary-color, rgb(0, 119, 255)) 0%, #0052cc 100%);
    padding: 3.5rem 0 3rem;
    color: #fff;
}

.policy-hero h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
}

.policy-hero-meta {
    margin: .6rem 0 0;
    font-size: .95rem;
    color: rgba(255, 255, 255, .85);
}

/* ---------- Layout ---------- */

.policy-page {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    padding: 3rem 0 4rem;
}

.policy-nav {
    flex: 0 0 220px;
    position: sticky;
    top: 6.5rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.policy-nav-label {
    margin: 0 0 .6rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--secondary-color, #6c757d);
}

.policy-nav a {
    display: block;
    padding: .55rem .75rem;
    border-radius: 6px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--dark-color, #343a40);
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.policy-nav a:hover {
    background: #f2f6fc;
    color: var(--primary-color, rgb(0, 119, 255));
}

.policy-nav a.active {
    background: var(--primary-color, rgb(0, 119, 255));
    color: #fff;
}

.policy-content {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #3a3a3a;
}

/* ---------- Typography inside the policy body ---------- */

.policy-content h2 {
    margin: 2.2rem 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid #eef1f5;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color, #343a40);
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content h3 {
    margin: 1.6rem 0 .75rem;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--dark-color, #343a40);
}

.policy-content p {
    margin: 0 0 1.1rem;
}

.policy-content a {
    color: var(--primary-color, rgb(0, 119, 255));
    text-decoration: underline;
    text-underline-offset: 2px;
}

.policy-content strong {
    color: var(--dark-color, #343a40);
}

.policy-content ul,
.policy-content ol {
    margin: 0 0 1.1rem;
    padding-left: 1.4rem;
}

.policy-content li {
    margin-bottom: .4rem;
}

.policy-content > p:first-of-type strong:first-child {
    /* The "Last updated" line at the top of each doc, kept but de-emphasised
       since the hero already shows the date. */
    color: var(--secondary-color, #6c757d);
    font-weight: 600;
}

/* ---------- Tables ---------- */

.policy-content table {
    width: 100%;
    margin: 0 0 1.4rem;
    border-collapse: collapse;
    font-size: .92rem;
}

.policy-content th,
.policy-content td {
    padding: .65rem .85rem;
    border: 1px solid #e3e7ed;
    text-align: left;
    vertical-align: top;
}

.policy-content thead th {
    background: #f7f9fc;
    font-weight: 700;
    color: var(--dark-color, #343a40);
}

.policy-content tbody tr:nth-child(even) {
    background: #fbfcfe;
}

/* ---------- Blockquotes / callouts (used for the address TODO note) ---------- */

.policy-content blockquote,
.policy-content > p > em:only-child {
    display: block;
    margin: 0 0 1.1rem;
    padding: .8rem 1rem;
    background: #fff8e6;
    border-left: 3px solid #e0a800;
    border-radius: 4px;
    font-size: .9rem;
    color: #6b5300;
}

.policy-content hr {
    border: none;
    border-top: 1px solid #eef1f5;
    margin: 2rem 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .policy-page {
        flex-direction: column;
        gap: 1.5rem;
    }

    .policy-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: .4rem;
        width: 100%;
    }

    .policy-nav-label {
        display: none;
    }

    .policy-nav a {
        flex: 1 1 auto;
        text-align: center;
        font-size: .85rem;
        padding: .5rem .6rem;
    }

    .policy-hero {
        padding: 2.5rem 0 2rem;
    }

    .policy-hero h1 {
        font-size: 1.65rem;
    }
}
