@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazir/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Sora";
    src: url("../fonts/sora/Sora-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --legal-bg: #07091d;
    --legal-panel: rgba(13, 18, 43, .88);
    --legal-panel-soft: rgba(19, 26, 57, .72);
    --legal-text: #eef2ff;
    --legal-muted: #a1aac7;
    --legal-faint: #707b9d;
    --legal-cyan: #24c2dc;
    --legal-purple: #7755ef;
    --legal-pink: #e51bdc;
    --legal-border: rgba(153, 171, 225, .14);
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--legal-text);
    background:
        radial-gradient(ellipse at 15% 12%, rgba(105, 54, 205, .19), transparent 35%),
        radial-gradient(ellipse at 88% 25%, rgba(0, 183, 218, .12), transparent 32%),
        linear-gradient(145deg, #050617 0%, #090c25 52%, #06091b 100%);
    font-family: "Vazirmatn", Tahoma, sans-serif;
    line-height: 1.95;
}

a { color: inherit; }

.legal-orb {
    position: fixed;
    z-index: 0;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .12;
    pointer-events: none;
}
.legal-orb-one { top: 20%; right: -190px; background: var(--legal-cyan); }
.legal-orb-two { bottom: 0; left: -190px; background: var(--legal-pink); }

.legal-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.legal-nav {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--legal-border);
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 190px;
}
.legal-brand img {
    width: 54px;
    height: 42px;
    object-fit: contain;
}
.legal-brand span { display: flex; flex-direction: column; line-height: 1.45; }
.legal-brand strong {
    font: 700 13px "Sora", sans-serif;
    letter-spacing: .12em;
    color: #f4f7ff;
}
.legal-brand small {
    margin-top: 4px;
    font: 8px "Sora", sans-serif;
    letter-spacing: .13em;
    color: var(--legal-faint);
}

.legal-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.legal-nav-links a {
    color: var(--legal-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color .2s ease;
}
.legal-nav-links a:hover { color: var(--legal-cyan); }

.legal-login {
    padding: 9px 17px;
    border: 1px solid rgba(36, 194, 220, .38);
    border-radius: 999px;
    color: #d9faff;
    background: rgba(36, 194, 220, .07);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease;
}
.legal-login:hover {
    background: rgba(36, 194, 220, .15);
    border-color: rgba(36, 194, 220, .7);
}

.legal-main { padding: 54px 0 70px; }

.legal-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 54px);
    border: 1px solid var(--legal-border);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(17, 23, 53, .94), rgba(7, 11, 31, .96));
    box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}
.legal-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 8%;
    width: 190px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--legal-pink), var(--legal-cyan), transparent);
    opacity: .9;
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--legal-cyan);
    font: 10px "Sora", sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.legal-kicker::before {
    content: "";
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, var(--legal-pink), var(--legal-cyan));
}
.legal-title {
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.55;
}
.legal-lead {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--legal-muted);
    font-size: 14px;
}
.legal-updated {
    display: inline-block;
    margin-top: 20px;
    padding: 5px 12px;
    border: 1px solid var(--legal-border);
    border-radius: 999px;
    color: var(--legal-faint);
    font-size: 11px;
}

.legal-content { margin-top: 34px; }
.legal-section {
    padding: 24px 0;
    border-top: 1px solid var(--legal-border);
}
.legal-section:first-child { border-top: 0; }
.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    color: #f5f7ff;
    font-size: 17px;
    font-weight: 700;
}
.legal-section h2::before {
    content: "";
    width: 5px;
    height: 21px;
    flex: 0 0 5px;
    border-radius: 5px;
    background: linear-gradient(180deg, var(--legal-pink), var(--legal-cyan));
}
.legal-section p {
    margin: 8px 0;
    color: #b8c1dc;
    font-size: 13px;
}
.legal-section ul {
    margin: 10px 0 0;
    padding: 0 22px 0 0;
    color: #b8c1dc;
    font-size: 13px;
}
.legal-section li { padding: 3px 0; }
.legal-section li::marker { color: var(--legal-cyan); }
.legal-section a {
    color: #6ee7f6;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.legal-section a:hover { text-decoration: underline; }

.legal-callout {
    margin-top: 18px;
    padding: 17px 20px;
    border: 1px solid rgba(36, 194, 220, .2);
    border-right: 3px solid var(--legal-cyan);
    border-radius: 13px;
    color: #c9d5f0;
    background: rgba(36, 194, 220, .055);
    font-size: 12px;
}

.legal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 25px 4px 34px;
    border-top: 1px solid var(--legal-border);
    color: var(--legal-faint);
    font-size: 11px;
}
.legal-footer > div:first-child { display: flex; flex-direction: column; }
.legal-footer strong {
    color: #dce4ff;
    font: 700 11px "Sora", sans-serif;
    letter-spacing: .1em;
}
.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.legal-footer-links a {
    color: var(--legal-muted);
    text-decoration: none;
}
.legal-footer-links a:hover { color: var(--legal-cyan); }
.legal-copyright { white-space: nowrap; }

@media (max-width: 760px) {
    .legal-shell { width: min(100% - 26px, 620px); }
    .legal-nav { min-height: 76px; flex-wrap: wrap; padding: 12px 0; gap: 12px; }
    .legal-brand { min-width: 0; }
    .legal-brand img { width: 44px; height: 36px; }
    .legal-brand strong { font-size: 11px; }
    .legal-brand small { font-size: 7px; }
    .legal-nav-links { order: 3; width: 100%; justify-content: center; gap: 20px; padding: 7px 0 2px; }
    .legal-nav-links a { font-size: 11px; }
    .legal-login { padding: 7px 11px; font-size: 10px; }
    .legal-main { padding: 28px 0 42px; }
    .legal-card { border-radius: 20px; }
    .legal-lead { font-size: 12px; }
    .legal-section { padding: 19px 0; }
    .legal-section h2 { font-size: 15px; }
    .legal-section p, .legal-section ul { font-size: 12px; }
    .legal-footer { flex-direction: column; align-items: flex-start; gap: 14px; }
    .legal-footer-links { gap: 12px 18px; }
}
