/* =========================================================
   policy-pages.css
   Shared styles for Terms of Use and Privacy Policy pages
   ========================================================= */

html, body {
    height: 100%;
    margin: 0;
}

/* ── Page wrapper ── */
.policy-page {
    min-height: 100vh;
    background: var(--bs-body-bg);
    display: flex;
    flex-direction: column;
}

/* ── Sticky header ── */
.policy-header {
    background: var(--bs-white);
    border-bottom: 1px solid var(--bs-gray-200);
    padding: 0.875rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.policy-header .back-link {
    font-size: 0.85rem;
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.policy-header .back-link:hover {
    color: var(--bs-secondary-brand);
}

/* ── Scrollable content area ── */
.policy-wrapper {
    flex: 1;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
}

/* ── White content card ── */
.policy-card {
    background: var(--bs-white);
    border-radius: 10px;
    padding: 2.5rem 3rem;
    max-width: 880px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

/* ── Page title ── */
.policy-page-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bs-primary);
    border-bottom: 2px solid var(--bs-primary);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

/* ── Subtitle (Terms of Use sub-heading) ── */
.policy-page-subtitle {
    font-size: 0.82rem;
    color: var(--bs-gray);
    margin-bottom: 1.25rem;
}

/* ── Body text ── */
.policy-card p {
    font-size: 0.875rem;
    color: var(--bs-black);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.policy-card a {
    color: var(--bs-primary);
    word-break: break-all;
}

.policy-card a:hover {
    color: var(--bs-secondary-brand);
}

/* ── Highlighted notice block (PLEASE READ / Disclaimers) ── */
.policy-notice {
    background: var(--bs-lite);
    border-left: 4px solid var(--bs-primary);
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.82rem;
    margin: 0.75rem 0 1.25rem 0;
    border-radius: 0 6px 6px 0;
    color: var(--bs-black);
    line-height: 1.6;
}

/* ── "DETAILED SECTION" label (Privacy Policy) ── */
.policy-section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bs-gray);
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
}

/* ── Sub-title (Privacy Policy summary headings) ── */
.policy-sub-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bs-black);
    margin-top: 0.5rem;
    margin-bottom: 0.4rem;
}

/* ── Numbered sections (Privacy Policy) ── */
.policy-numbered-section {
    margin-top: 1.75rem;
}

.policy-numbered-section h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bs-black);
    margin-bottom: 0.75rem;
}

/* ── Numbered sections (Terms of Use) ── */
.policy-section {
    margin-top: 1.75rem;
}

.policy-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bs-black);
    margin-bottom: 0.75rem;
}

.policy-subsection {
    margin-top: 1rem;
}

.policy-subsection-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bs-black);
    margin-bottom: 0.5rem;
}

/* ── Lists ── */
.policy-intro-list {
    list-style-type: upper-alpha;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-intro-list > li {
    font-size: 0.875rem;
    color: var(--bs-black);
    line-height: 1.75;
    margin-bottom: 0.6rem;
}

.alpha-list,
.policy-card ol.alpha-list {
    list-style-type: lower-alpha;
    padding-left: 1.5rem;
}

.alpha-list > li,
.policy-card ol > li {
    font-size: 0.875rem;
    color: var(--bs-black);
    line-height: 1.75;
    margin-bottom: 0.6rem;
}

.roman-list,
.policy-card ol.roman-list {
    list-style-type: lower-roman;
    padding-left: 2rem;
    margin-top: 0.4rem;
}

.roman-list > li {
    font-size: 0.875rem;
    color: var(--bs-black);
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

/* ── Horizontal divider ── */
.policy-divider {
    border: 0;
    border-top: 1px solid var(--bs-gray-200);
    margin: 1.75rem 0;
}

/* ── Acknowledgement block (Privacy Policy) ── */
.policy-acknowledgement {
    background: var(--bs-lite);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--bs-black);
    margin-top: 2rem;
    line-height: 1.7;
}

/* ── Footer bar ── */
.policy-footer-bar {
    background: var(--bs-white);
    border-top: 1px solid var(--bs-gray-200);
    padding: 0.875rem 2rem;
    display: flex;
    align-items: right;
    justify-content: flex-end;
    font-size: 0.8rem;
    color: var(--bs-gray);
}

.policy-footer-bar a {
    color: var(--bs-gray);
    text-decoration: none;
}

.policy-footer-bar a:hover {
    opacity: 0.8;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .policy-card {
        padding: 1.5rem 1.25rem;
    }

    .policy-header {
        padding: 0.75rem 1rem;
    }
}
