/* ==========================================================================
   World Nails — Salon Policy page styles
   This stylesheet works alongside styles.css
   ========================================================================== */

/* ==========================================================================
   PAGE WRAPPER
   ========================================================================== */

.policy-main {
    background: var(--bg-soft, #f7f9fc);
    padding-bottom: 80px;
}

.policy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 0;
}


/* ==========================================================================
   PAGE HEADING
   ========================================================================== */

.policy-heading {
    text-align: center;
    margin-bottom: 50px;
}

.policy-heading .eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent, #0056b3);
    font-weight: 600;
    margin-bottom: 14px;
}

.policy-heading h1 {
    font-size: clamp(34px, 6vw, 52px);
    color: var(--ink, #1a1a1a);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 0;
    display: inline-block;
    position: relative;
}

.policy-heading h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent, #0056b3);
    margin: 18px auto 0;
    border-radius: 2px;
}

.policy-intro {
    max-width: 720px;
    margin: 28px auto 0;
    color: var(--ink-soft, #555);
    font-size: 16px;
    line-height: 1.7;
}


/* ==========================================================================
   LAYOUT — Sticky TOC + Content
   ========================================================================== */

.policy-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}


/* ==========================================================================
   TABLE OF CONTENTS (sidebar)
   ========================================================================== */

.policy-toc {
    position: sticky;
    top: 160px; /* below sticky header + menu */
    align-self: start;
}

.toc-inner {
    background: #fff;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
}

.toc-inner h2 {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft, #555);
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line, #e5e7eb);
}

.policy-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.policy-toc li {
    counter-increment: toc;
    margin-bottom: 2px;
}

.policy-toc a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--ink-soft, #555);
    font-size: 13.5px;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

.policy-toc a::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 11px;
    color: var(--ink-muted, #888);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    transition: color 0.15s;
}

.policy-toc a:hover {
    background: var(--accent-soft, #e8f0fa);
    color: var(--accent, #0056b3);
}

.policy-toc a:hover::before {
    color: var(--accent, #0056b3);
}

.policy-toc a.active {
    background: var(--accent, #0056b3);
    color: #fff;
    font-weight: 600;
}

.policy-toc a.active::before {
    color: rgba(255, 255, 255, 0.7);
}


/* ==========================================================================
   POLICY CONTENT
   ========================================================================== */

.policy-content {
    background: #fff;
    border-radius: 14px;
    padding: 50px 50px 40px;
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.08));
    border: 1px solid var(--line, #e5e7eb);
}

.policy-content section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line, #e5e7eb);
    scroll-margin-top: 160px; /* offset for sticky header on jump-link scroll */
}

.policy-content section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-content h2 {
    font-size: clamp(22px, 3vw, 28px);
    color: var(--ink, #1a1a1a);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.section-number {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent, #0056b3);
    background: var(--accent-soft, #e8f0fa);
    padding: 6px 10px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    align-self: center;
}

.policy-content h3 {
    font-size: 17px;
    color: var(--ink, #1a1a1a);
    font-weight: 700;
    letter-spacing: -0.005em;
    margin: 24px 0 10px;
    padding-left: 14px;
    border-left: 3px solid var(--accent, #0056b3);
    line-height: 1.3;
}

.policy-content p {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ink-soft, #555);
    margin-bottom: 14px;
}

.policy-content ul {
    margin: 12px 0 18px 8px;
    padding: 0;
    list-style: none;
}

.policy-content li {
    position: relative;
    padding: 6px 0 6px 26px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ink-soft, #555);
}

.policy-content li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--accent, #0056b3);
    border-radius: 50%;
}

.policy-content strong {
    color: var(--ink, #1a1a1a);
    font-weight: 700;
}


/* ==========================================================================
   CALLOUT (info box)
   ========================================================================== */

.callout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--accent-soft, #e8f0fa);
    border-left: 4px solid var(--accent, #0056b3);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.callout i {
    color: var(--accent, #0056b3);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.callout p {
    margin: 0;
    color: var(--ink, #1a1a1a);
    font-size: 14.5px;
    line-height: 1.55;
}


/* ==========================================================================
   POLICY CLOSING
   ========================================================================== */

.policy-closing {
    margin-top: 50px;
    padding: 30px;
    background: var(--bg-soft, #f7f9fc);
    border-radius: 10px;
    text-align: center;
}

.policy-closing p {
    color: var(--ink-soft, #555);
    line-height: 1.7;
    margin-bottom: 8px;
    font-size: 15px;
}

.policy-closing .signature {
    color: var(--ink, #1a1a1a);
    font-size: 17px;
    margin-top: 18px;
    margin-bottom: 4px;
}

.policy-closing .signoff {
    font-weight: 600;
    color: var(--accent, #0056b3);
    margin-bottom: 16px;
}

.policy-closing .updated {
    font-size: 12px;
    color: var(--ink-muted, #888);
    margin-top: 14px;
    margin-bottom: 0;
    letter-spacing: 0.04em;
}


/* ==========================================================================
   POLICY CTA (bottom)
   ========================================================================== */

.policy-cta {
    margin-top: 40px;
    padding: 36px 30px;
    background: linear-gradient(135deg, var(--accent, #0056b3), var(--accent-dark, #004299));
    color: #fff;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 16px 36px -14px rgba(0, 86, 179, 0.4);
}

.policy-cta h3 {
    font-size: 1.6em;
    margin-bottom: 8px;
    font-weight: 700;
    color: #fff;
    border: none;
    padding: 0;
    letter-spacing: -0.01em;
}

.policy-cta p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 22px;
    font-size: 15px;
}

.policy-cta .cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.policy-cta .btn-primary,
.policy-cta .btn-secondary {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.2s, background 0.2s, color 0.2s;
    text-decoration: none;
}

.policy-cta .btn-primary {
    background: #fff;
    color: var(--accent, #0056b3);
}

.policy-cta .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.policy-cta .btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.policy-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-2px);
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
    .policy-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Convert sticky sidebar to a static collapsible card on top */
    .policy-toc {
        position: static;
    }

    .toc-inner {
        padding: 18px 18px;
    }

    .policy-toc ol {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .policy-content {
        padding: 36px 30px;
    }

    .policy-content section {
        scroll-margin-top: 100px;
    }
}

@media (max-width: 768px) {
    .policy-container {
        padding: 40px 16px 0;
    }

    .policy-heading {
        margin-bottom: 36px;
    }

    .policy-content {
        padding: 28px 22px;
        border-radius: 12px;
    }

    .policy-content section {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .policy-content h2 {
        font-size: 1.4em;
        gap: 10px;
        flex-wrap: wrap;
    }

    .section-number {
        font-size: 12px;
        padding: 5px 9px;
    }

    .policy-content h3 {
        font-size: 15.5px;
        margin-top: 20px;
    }

    .policy-content p,
    .policy-content li {
        font-size: 14.5px;
    }

    .callout {
        padding: 14px 16px;
    }

    .callout p {
        font-size: 13.5px;
    }

    .policy-closing {
        padding: 24px 18px;
        margin-top: 36px;
    }

    .policy-cta {
        padding: 30px 22px;
        margin-top: 30px;
    }

    .policy-cta h3 {
        font-size: 1.35em;
    }

    .policy-cta .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .policy-cta .btn-primary,
    .policy-cta .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .policy-toc ol {
        grid-template-columns: 1fr;
    }

    .policy-content {
        padding: 24px 18px;
    }
}