/**
 * Privacy policy page — hero, document card, sections, provider blocks, CTA.
 * Palette aligned with about/contact pages: #16AE94 accent, light/dark via html.light / html.dark.
 */

.privacy-page {
    --pv-radius: 16px;
    --pv-radius-sm: 12px;
    --pv-accent: #16ae94;
    --pv-accent-soft: rgba(22, 174, 148, 0.12);
    --pv-muted: #6C6F83;
    --pv-shadow: 0 10px 40px rgba(14, 16, 25, 0.08);
    padding-bottom: max(3rem, env(safe-area-inset-bottom, 0px));
    padding-inline-start: env(safe-area-inset-left, 0px);
    padding-inline-end: env(safe-area-inset-right, 0px);
}

html.dark .privacy-page {
    --pv-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.privacy-page .container {
    max-width: 920px;
}

/* --- Hero --- */
.privacy-hero {
    position: relative;
    border-radius: var(--pv-radius);
    overflow: hidden;
    padding: 2rem 1.75rem;
    margin-bottom: 1.75rem;
    border: 1px solid transparent;
    box-shadow: var(--pv-shadow);
}

html.light .privacy-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 55%, #eef6f4 100%);
    border-color: rgba(227, 229, 240, 0.95);
}

html.dark .privacy-hero {
    background: linear-gradient(145deg, #1f2538 0%, #191d2d 50%, #131a24 100%);
    border-color: #303651;
}

.privacy-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #16ae94, #5a83ff, #7c569a);
}

.privacy-hero__kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pv-accent);
    margin-bottom: 0.6rem;
}

html.dark .privacy-hero__kicker {
    color: #39dbbf;
}

.privacy-hero__title {
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 0.75rem;
    letter-spacing: -0.03em;
}

html.light .privacy-hero__title {
    color: #0e1019;
}

html.dark .privacy-hero__title {
    color: #f1f2f8;
}

.privacy-hero__lead {
    margin: 0;
    max-width: 40rem;
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 600;
    color: var(--pv-muted);
}

.privacy-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.privacy-hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    background: var(--pv-accent-soft);
    color: var(--pv-accent);
    border: 1px solid rgba(22, 174, 148, 0.22);
}

html.dark .privacy-hero__chip {
    color: #39dbbf;
    background: rgba(57, 219, 191, 0.1);
    border-color: rgba(57, 219, 191, 0.25);
}

/* --- Document card --- */
.privacy-document {
    border-radius: var(--pv-radius);
    border: 1px solid transparent;
    box-shadow: var(--pv-shadow);
    padding: 1.75rem 1.65rem;
    margin-bottom: 2rem;
    overflow-x: hidden;
}

html.light .privacy-document {
    background: #ffffff;
    border-color: #e3e5f0;
}

html.dark .privacy-document {
    background: #191d2d;
    border-color: #303651;
}

/* Typography */
.privacy-document p {
    margin: 0 0 0.85rem;
    font-size: clamp(0.86rem, 2.8vw, 0.94rem);
    line-height: 1.72;
    font-weight: 600;
}

html.light .privacy-document p {
    color: #3b4054;
}

html.dark .privacy-document p {
    color: #c9cdd8;
}

.privacy-document p:last-child {
    margin-bottom: 0;
}

.privacy-document strong {
    font-weight: 900;
}

html.light .privacy-document strong {
    color: #0e1019;
}

html.dark .privacy-document strong {
    color: #f1f2f8;
}

.privacy-document a {
    color: var(--pv-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
    overflow-wrap: anywhere;
    transition: color 0.15s ease;
}

html.dark .privacy-document a {
    color: #39dbbf;
}

.privacy-document a:hover {
    color: #12a082;
}

html.dark .privacy-document a:hover {
    color: #2ed4b5;
}

/* Section headings */
.privacy-document h3 {
    font-size: clamp(1rem, 3.5vw, 1.12rem);
    font-weight: 900;
    margin: 2rem 0 0.85rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--pv-accent);
    display: inline-block;
    line-height: 1.35;
}

.privacy-document h3:first-child {
    margin-top: 0;
}

html.light .privacy-document h3 {
    color: #0e1019;
}

html.dark .privacy-document h3 {
    color: #f1f2f8;
    border-bottom-color: #39dbbf;
}

.privacy-document h4 {
    font-size: clamp(0.92rem, 3vw, 1rem);
    font-weight: 900;
    margin: 1.35rem 0 0.55rem;
    line-height: 1.4;
}

html.light .privacy-document h4 {
    color: var(--pv-accent);
}

html.dark .privacy-document h4 {
    color: #39dbbf;
}

/* Lists */
.privacy-document ul {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.privacy-document ul > li {
    position: relative;
    margin-bottom: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--pv-radius-sm);
    border: 1px solid transparent;
}

html.light .privacy-document ul > li {
    background: #f8f9fc;
    border-color: #e3e5f0;
}

html.dark .privacy-document ul > li {
    background: #131521;
    border-color: #303651;
}

.privacy-document ul > li:last-child {
    margin-bottom: 0;
}

.privacy-document ul > li > p {
    margin-bottom: 0.45rem;
}

.privacy-document ul > li > p:last-child {
    margin-bottom: 0;
}

.privacy-document ul > li > h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Simple bullet lists (single-line items) */
.privacy-document ul > li:only-child p:only-child,
.privacy-document ul > li > p:only-child {
    margin-bottom: 0;
}

/* Contact email list — highlight */
.privacy-document h3:last-of-type + p + ul,
.privacy-document h3:last-of-type + ul {
    margin-top: 0.5rem;
}

.privacy-document ul > li:has(a[href^="mailto:"]) {
    border-inline-start: 4px solid var(--pv-accent);
}

html.dark .privacy-document ul > li:has(a[href^="mailto:"]) {
    border-inline-start-color: #39dbbf;
}

/* Nested content in list items */
.privacy-document li ul {
    margin-top: 0.65rem;
    margin-bottom: 0;
}

.privacy-document li ul > li {
    padding: 0.55rem 0.75rem;
    font-size: 0.9em;
}

/* --- CTA --- */
.privacy-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.65rem 1.5rem;
    border-radius: var(--pv-radius);
    background: linear-gradient(120deg, rgba(22, 174, 148, 0.15) 0%, rgba(90, 131, 255, 0.12) 100%);
    border: 1px solid rgba(22, 174, 148, 0.25);
}

html.dark .privacy-cta {
    background: linear-gradient(120deg, rgba(57, 219, 191, 0.1) 0%, rgba(90, 131, 255, 0.08) 100%);
    border-color: rgba(57, 219, 191, 0.22);
}

@media (min-width: 576px) {
    .privacy-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.privacy-cta__text h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 900;
    border: none;
    padding: 0;
    display: block;
}

html.light .privacy-cta__text h3 {
    color: #0e1019;
}

html.dark .privacy-cta__text h3 {
    color: #f1f2f8;
}

.privacy-cta__text p {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pv-muted);
    max-width: 28rem;
    line-height: 1.6;
}

.privacy-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.9rem;
    white-space: nowrap;
    background: var(--pv-accent);
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration: none !important;
}

.privacy-cta__btn:hover {
    background: #12a082;
    color: #fff !important;
    transform: translateY(-1px);
}

html.dark .privacy-cta__btn {
    background: #39dbbf;
    color: #131521 !important;
}

html.dark .privacy-cta__btn:hover {
    background: #2ed4b5;
    color: #131521 !important;
}

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

@media (max-width: 767.98px) {
    .privacy-page .container {
        max-width: 100%;
        padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    }

    .privacy-page {
        padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
    }

    .privacy-hero {
        padding: 1.4rem 1.1rem;
        margin-bottom: 1.25rem;
        border-radius: 12px;
    }

    .privacy-hero__title {
        font-size: clamp(1.2rem, 5vw, 1.55rem);
    }

    .privacy-hero__lead {
        font-size: 0.9rem;
    }

    .privacy-hero__chip {
        font-size: 0.72rem;
        padding: 0.42rem 0.7rem;
    }

    .privacy-document {
        padding: 1.25rem 1rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }

    .privacy-document h3 {
        margin-top: 1.65rem;
        max-width: 100%;
    }

    .privacy-document ul > li {
        padding: 0.75rem 0.85rem;
    }

    .privacy-cta {
        padding: 1.25rem 1.1rem;
        gap: 1rem;
    }

    .privacy-cta__btn {
        width: 100%;
        min-height: 48px;
        padding: 0.75rem 1rem;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
}
