/* ==========================================================
   HORMUUD UNIVERSITY POLICY FAMILY — COMMON FOUNDATION
   ========================================================== */

:root {
    --hu-green: #148154;
    --hu-green-dark: #0a3420;
    --hu-green-soft: #E8F3EE;
    --hu-blue: #2C85B7;
    --hu-blue-dark: #236E98;
    --hu-blue-soft: #EAF4F9;
    --hu-ink: #202522;
    --hu-text: #606862;
    --hu-soft: #7B857E;
    --hu-line: #D9E0DC;
    --hu-bg: #F8FAF9;
    --hu-white: #FFFFFF;
    --display: "Fraunces", Georgia, serif;
    --body: "Inter", Arial, sans-serif;
    --mono: "DM Mono", monospace;
}

html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
}

.hu-policy-page {
    min-height: 100vh;
    overflow: visible !important;
    color: var(--hu-ink);
    background: var(--hu-white);
    font-family: var(--body);
}

.hu-policy-page *,
.hu-policy-page *::before,
.hu-policy-page *::after {
    box-sizing: border-box;
}

.policy-shell {
    width: min(1260px, calc(100% - 56px));
    margin-inline: auto;
}

.policy-eyebrow,
.policy-kicker {
    display: inline-block;
    color: var(--hu-green-dark);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.policy-two-column {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 72px;
}

.policy-section-index {
    padding-top: 8px;
    border-top: 1px solid var(--hu-line);
}

.policy-section-index span {
    color: var(--hu-blue-dark);
    font-family: var(--mono);
    font-size: 12px;
}

.policy-section-index p {
    margin: 9px 0 0;
    color: var(--hu-soft);
    font-size: 15px;
}

.policy-copy-large h2,
.quality-policy-card h2,
.security-policy-item h2,
.privacy-step h2 {
    margin: 10px 0 0;
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: -.035em;
}

.policy-copy-large h2 {
    max-width: 900px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: .98;
}

.policy-copy-large h2 em,
.quality-policy-card h2 em,
.security-hero h1 em,
.privacy-hero h1 em,
.quality-hero h1 em {
    color: var(--hu-blue);
    font-style: normal;
}

.policy-copy-large > p,
.quality-policy-card > p,
.security-policy-item p,
.privacy-step p {
    max-width: 860px;
    margin: 22px 0 0;
    color: var(--hu-text);
    font-size: 17px;
    line-height: 1.72;
}

.policy-text-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 0 16px;
    color: #FFFFFF;
    background: var(--hu-green);
    border: 1px solid var(--hu-green);
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.policy-text-button:hover,
.policy-text-button:focus-visible {
    background: var(--hu-green-dark);
    transform: translateY(-1px);
}

.policy-text-button .material-symbols-outlined {
    font-size: 18px;
}

.policy-principles {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 34px;
    border-top: 1px solid var(--hu-line);
    border-bottom: 1px solid var(--hu-line);
}

.policy-principles span {
    flex: 1 1 150px;
    padding: 16px 18px;
    color: var(--hu-green-dark);
    border-right: 1px solid var(--hu-line);
    font-size: 14px;
    font-weight: 600;
}

.policy-principles span:last-child {
    border-right: 0;
}

.policy-closing-section {
    padding: 110px 0 130px;
    background: var(--hu-bg);
    border-top: 1px solid var(--hu-line);
}

.policy-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1);
}

.policy-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .policy-shell {
        width: min(100% - 30px, 1260px);
    }

    .policy-two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .policy-section-index {
        max-width: 220px;
    }
}

@media (max-width: 560px) {
    .policy-shell {
        width: min(100% - 22px, 1260px);
    }

    .policy-copy-large h2 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .policy-copy-large > p,
    .quality-policy-card > p,
    .security-policy-item p,
    .privacy-step p {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hu-policy-page *,
    .hu-policy-page *::before,
    .hu-policy-page *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }

    .policy-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================
   PRIVACY POLICY — THE DATA JOURNEY
   ========================================================== */

.privacy-hero {
    padding: 92px 0 105px;
    background: var(--hu-bg);
    border-bottom: 1px solid var(--hu-line);
    overflow: hidden;
}

.privacy-hero-grid {
    min-height: 630px;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 68px;
    align-items: center;
}

.privacy-hero h1 {
    margin: 14px 0 0;
    font-family: var(--display);
    font-size: clamp(62px, 8vw, 106px);
    font-weight: 500;
    line-height: .88;
    letter-spacing: -.06em;
}

.privacy-hero-copy > p {
    max-width: 690px;
    margin: 28px 0 0;
    color: var(--hu-text);
    font-size: 17px;
    line-height: 1.72;
}

.privacy-map {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    background: var(--hu-white);
    border: 1px solid var(--hu-line);
}

#privacyCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.privacy-map-core {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 50%;
    width: 160px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    align-content: center;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    background: var(--hu-blue);
    border-radius: 50%;
    box-shadow: 0 22px 46px rgba(44,133,183,.16);
}

.privacy-map-core .material-symbols-outlined {
    font-size: 37px;
}

.privacy-map-core strong {
    margin-top: 7px;
    font-size: 15px;
}

.privacy-map-core small {
    margin-top: 4px;
    color: rgba(255,255,255,.78);
    font-size: 11px;
}

.privacy-map-node {
    position: absolute;
    z-index: 6;
    min-height: 40px;
    padding: 0 12px;
    color: var(--hu-green-dark);
    background: var(--hu-white);
    border: 1px solid var(--hu-line);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.privacy-map-node:hover,
.privacy-map-node:focus-visible {
    color: #FFFFFF;
    background: var(--hu-green);
    border-color: var(--hu-green);
    transform: translateY(-2px);
}

.n1 { left: 7%; top: 16%; }
.n2 { left: 39%; top: 9%; }
.n3 { right: 6%; top: 20%; }
.n4 { right: 5%; bottom: 20%; }
.n5 { left: 39%; bottom: 8%; }
.n6 { left: 7%; bottom: 17%; }
.n7 { left: 4%; top: 47%; }

.privacy-overview,
.privacy-journey-section {
    padding: 118px 0;
}

.privacy-overview {
    border-bottom: 1px solid var(--hu-line);
}

.privacy-journey-section {
    background: var(--hu-bg);
}

.privacy-journey {
    position: relative;
    padding-left: 250px;
}

.privacy-journey-line {
    position: absolute;
    left: 210px;
    top: 0;
    bottom: 0;
    width: 1px;
    overflow: hidden;
    background: var(--hu-line);
}

.privacy-journey-line i {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    background: var(--hu-blue);
}

.privacy-step {
    position: relative;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 28px;
    padding: 50px 0 54px;
    border-top: 1px solid var(--hu-line);
}

.privacy-step:last-child {
    border-bottom: 1px solid var(--hu-line);
}

.privacy-step::before {
    content: "";
    position: absolute;
    left: -45px;
    top: 59px;
    width: 10px;
    height: 10px;
    background: var(--hu-white);
    border: 2px solid var(--hu-blue);
    border-radius: 50%;
}

.privacy-step-number {
    color: var(--hu-blue-dark);
    font-family: var(--mono);
    font-size: 12px;
}

.privacy-step h2 {
    max-width: 850px;
    font-size: clamp(36px, 4.4vw, 60px);
    line-height: 1;
}

.privacy-step p + p {
    margin-top: 16px;
}

.privacy-closing {
    background: var(--hu-blue-soft);
}

@media (max-width: 980px) {
    .privacy-hero-grid {
        grid-template-columns: 1fr;
    }

    .privacy-map {
        min-height: 540px;
    }

    .privacy-journey {
        padding-left: 100px;
    }

    .privacy-journey-line {
        left: 56px;
    }
}

@media (max-width: 620px) {
    .privacy-hero {
        padding: 72px 0 80px;
    }

    .privacy-hero-grid {
        min-height: 0;
        gap: 42px;
    }

    .privacy-hero h1 {
        font-size: clamp(58px, 18vw, 82px);
    }

    .privacy-map {
        min-height: 560px;
    }

    .privacy-map-core {
        width: 126px;
    }

    .privacy-map-node {
        min-height: 34px;
        max-width: 130px;
        padding: 0 8px;
        font-size: 10px;
    }

    .n1 { left: 3%; top: 14%; }
    .n2 { left: 41%; top: 7%; }
    .n3 { right: 2%; top: 19%; }
    .n4 { right: 2%; bottom: 20%; }
    .n5 { left: 39%; bottom: 7%; }
    .n6 { left: 3%; bottom: 17%; }
    .n7 { left: 2%; top: 46%; }

    .privacy-journey {
        padding-left: 52px;
    }

    .privacy-journey-line {
        left: 17px;
    }

    .privacy-step {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 42px 0;
    }

    .privacy-step::before {
        left: -39px;
        top: 50px;
    }
}


/* ==========================================================
   HORMUUD UNIVERSITY — PRIVACY POLICY DARK MODE 2026
   ========================================================== */

html[data-theme="dark"] .hu-privacy-page {
    --hu-green: #66C59B;
    --hu-green-dark: #86D5B2;
    --hu-green-soft: #183A2C;

    --hu-blue: #72BCE3;
    --hu-blue-dark: #97D1EC;
    --hu-blue-soft: #173442;

    --hu-ink: #EDF3EF;
    --hu-text: #A9B5AE;
    --hu-soft: #7F8B84;
    --hu-line: #2D3A32;
    --hu-bg: #0E1511;
    --hu-white: #151E18;

    color: var(--hu-ink) !important;
    background: #0E1511 !important;
}

html[data-theme="dark"] .hu-privacy-page .privacy-hero,
html[data-theme="dark"] .hu-privacy-page .privacy-journey-section,
html[data-theme="dark"] .hu-privacy-page .policy-closing-section {
    background: #0E1511 !important;
    border-color: var(--hu-line) !important;
}

html[data-theme="dark"] .hu-privacy-page .privacy-overview {
    background: #151E18 !important;
    border-color: var(--hu-line) !important;
}

html[data-theme="dark"] .hu-privacy-page .policy-eyebrow,
html[data-theme="dark"] .hu-privacy-page .policy-kicker {
    color: var(--hu-green-dark) !important;
}

html[data-theme="dark"] .hu-privacy-page .privacy-hero h1,
html[data-theme="dark"] .hu-privacy-page .policy-copy-large h2,
html[data-theme="dark"] .hu-privacy-page .privacy-step h2 {
    color: var(--hu-ink) !important;
}

html[data-theme="dark"] .hu-privacy-page .privacy-hero h1 em,
html[data-theme="dark"] .hu-privacy-page .policy-copy-large h2 em {
    color: var(--hu-blue) !important;
}

html[data-theme="dark"] .hu-privacy-page .privacy-hero-copy > p,
html[data-theme="dark"] .hu-privacy-page .policy-copy-large > p,
html[data-theme="dark"] .hu-privacy-page .privacy-step p {
    color: var(--hu-text) !important;
}

html[data-theme="dark"] .hu-privacy-page .privacy-map {
    background: #151E18 !important;
    border-color: var(--hu-line) !important;
}

html[data-theme="dark"] .hu-privacy-page .privacy-map-core {
    color: #0E1511 !important;
    background: var(--hu-blue) !important;
    box-shadow: 0 22px 46px rgba(0,0,0,.22) !important;
}

html[data-theme="dark"] .hu-privacy-page .privacy-map-core small {
    color: rgba(14,21,17,.70) !important;
}

html[data-theme="dark"] .hu-privacy-page .privacy-map-node {
    color: var(--hu-green-dark) !important;
    background: #18241D !important;
    border-color: #3A493F !important;
}

html[data-theme="dark"] .hu-privacy-page .privacy-map-node:hover,
html[data-theme="dark"] .hu-privacy-page .privacy-map-node:focus-visible {
    color: #0E1511 !important;
    background: var(--hu-green) !important;
    border-color: var(--hu-green) !important;
}

html[data-theme="dark"] .hu-privacy-page .policy-section-index,
html[data-theme="dark"] .hu-privacy-page .policy-principles,
html[data-theme="dark"] .hu-privacy-page .privacy-step {
    border-color: var(--hu-line) !important;
}

html[data-theme="dark"] .hu-privacy-page .policy-section-index span,
html[data-theme="dark"] .hu-privacy-page .privacy-step-number {
    color: var(--hu-blue-dark) !important;
}

html[data-theme="dark"] .hu-privacy-page .policy-section-index p {
    color: var(--hu-soft) !important;
}

html[data-theme="dark"] .hu-privacy-page .policy-principles span {
    color: var(--hu-green-dark) !important;
    border-color: var(--hu-line) !important;
}

html[data-theme="dark"] .hu-privacy-page .privacy-journey-line {
    background: var(--hu-line) !important;
}

html[data-theme="dark"] .hu-privacy-page .privacy-journey-line i {
    background: var(--hu-blue) !important;
}

html[data-theme="dark"] .hu-privacy-page .privacy-step::before {
    background: #151E18 !important;
    border-color: var(--hu-blue) !important;
}

html[data-theme="dark"] .hu-privacy-page .policy-text-button {
    color: #0E1511 !important;
    background: var(--hu-green) !important;
    border-color: var(--hu-green) !important;
}

html[data-theme="dark"] .hu-privacy-page .policy-text-button:hover,
html[data-theme="dark"] .hu-privacy-page .policy-text-button:focus-visible {
    background: var(--hu-green-dark) !important;
}

.hu-privacy-page,
.hu-privacy-page .privacy-hero,
.hu-privacy-page .privacy-overview,
.hu-privacy-page .privacy-journey-section,
.hu-privacy-page .privacy-map,
.hu-privacy-page .privacy-map-node,
.hu-privacy-page .privacy-step,
.hu-privacy-page .policy-closing-section {
    transition: background-color .24s ease, color .24s ease, border-color .24s ease;
}

@media (prefers-reduced-motion: reduce) {
    .hu-privacy-page,
    .hu-privacy-page .privacy-hero,
    .hu-privacy-page .privacy-overview,
    .hu-privacy-page .privacy-journey-section,
    .hu-privacy-page .privacy-map,
    .hu-privacy-page .privacy-map-node,
    .hu-privacy-page .privacy-step,
    .hu-privacy-page .policy-closing-section {
        transition: none !important;
    }
}
