/* =========================================================
   WAKART PUBLIC LEGAL, POLICY AND CONTACT PAGES
   ========================================================= */
.legal-page { background: #f7f7fc; }

.legal-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 82px;
    text-align: center;
    background:
        radial-gradient(circle at 10% 18%, rgba(24,185,129,.13), transparent 28%),
        radial-gradient(circle at 90% 8%, rgba(91,53,245,.18), transparent 30%),
        linear-gradient(180deg, #fbfaff 0%, #f1edff 100%);
}
.legal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(91,53,245,.09) 1px, transparent 1px);
    background-size: 25px 25px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.legal-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.legal-orb-one { width: 260px; height: 260px; left: -120px; bottom: -120px; background: rgba(24,185,129,.1); }
.legal-orb-two { width: 360px; height: 360px; right: -190px; top: -90px; background: rgba(91,53,245,.11); }
.legal-hero-inner { position: relative; z-index: 1; }
.legal-hero h1 {
    max-width: 850px;
    margin: 21px auto 18px;
    font-size: clamp(46px, 6vw, 74px);
    line-height: 1.01;
    letter-spacing: -3.5px;
}
.legal-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}
.legal-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}
.legal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    color: #50486a;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(91,53,245,.13);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}
.legal-meta i {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
    font-size: 9px;
    font-style: normal;
}

.legal-page-nav {
    position: sticky;
    top: 78px;
    z-index: 35;
    background: rgba(255,255,255,.9);
    border-top: 1px solid rgba(229,227,239,.8);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}
.legal-page-nav-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.legal-page-nav-inner::-webkit-scrollbar { display: none; }
.legal-page-nav a {
    flex: 0 0 auto;
    padding: 9px 14px;
    color: #625d72;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    transition: .2s ease;
}
.legal-page-nav a:hover { color: var(--primary); background: #f3f0ff; }
.legal-page-nav a.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 8px 20px rgba(91,53,245,.22);
}

.legal-content-section { padding: 70px 0 105px; }
.legal-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 820px);
    justify-content: center;
    align-items: start;
    gap: 40px;
}
.legal-layout-compact { grid-template-columns: 235px minmax(0, 780px); }
.legal-toc {
    position: sticky;
    top: 166px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}
.legal-toc > span {
    margin: 0 0 8px;
    color: #928ba2;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .9px;
    text-transform: uppercase;
}
.legal-toc a {
    padding: 8px 9px;
    color: #625d72;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 720;
    line-height: 1.35;
}
.legal-toc a:hover { color: var(--primary); background: #f3f0ff; }

.legal-document {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(37,25,91,.1);
}
.legal-document > section {
    padding: 34px 42px;
    border-bottom: 1px solid #eceaf3;
    scroll-margin-top: 165px;
}
.legal-document > section:last-child { border-bottom: 0; }
.legal-document h2 {
    margin: 0 0 15px;
    font-size: 23px;
    line-height: 1.25;
    letter-spacing: -.55px;
}
.legal-document h3 {
    margin: 24px 0 8px;
    color: #2e2940;
    font-size: 15px;
    line-height: 1.35;
}
.legal-document p {
    margin: 0 0 14px;
    color: #625e70;
    font-size: 13px;
    line-height: 1.82;
}
.legal-document p:last-child { margin-bottom: 0; }
.legal-document ul,
.legal-document ol {
    display: grid;
    gap: 10px;
    margin: 15px 0 0;
    padding-left: 21px;
    color: #5f5a6d;
    font-size: 13px;
    line-height: 1.72;
}
.legal-document li::marker { color: var(--primary); font-weight: 900; }
.legal-document a { color: var(--primary-dark); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-document strong { color: #28243a; }

.legal-summary-card,
.legal-decision-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 17px;
    align-items: start;
    margin: 32px 42px 0;
    padding: 21px;
    color: #3f2c90;
    background: linear-gradient(135deg, #f0edff, #faf9ff);
    border: 1px solid #dcd4ff;
    border-radius: 18px;
}
.legal-summary-card > span,
.legal-decision-card > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--primary-light), var(--primary-dark));
    border-radius: 15px;
    font-size: 21px;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(91,53,245,.2);
}
.legal-summary-card strong,
.legal-decision-card strong { display: block; font-size: 15px; line-height: 1.45; }
.legal-summary-card p,
.legal-decision-card p { margin: 5px 0 0; color: #6c648e; font-size: 11px; line-height: 1.65; }
.legal-summary-privacy { color: #0e7654; background: linear-gradient(135deg, #eafaf4, #fbfffd); border-color: #cceee1; }
.legal-summary-privacy > span { background: linear-gradient(145deg, #28c58d, #0d845b); box-shadow: 0 12px 24px rgba(13,132,91,.18); }
.legal-summary-privacy p { color: #537c6d; }
.legal-decision-card { color: #764b00; background: linear-gradient(135deg, #fff5dc, #fffdf8); border-color: #efd89e; }
.legal-decision-card > span { background: linear-gradient(145deg, #f2b742, #c87a00); box-shadow: 0 12px 24px rgba(200,122,0,.18); }
.legal-decision-card small { display: block; margin-bottom: 4px; color: #a0782f; font-size: 9px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.legal-decision-card p { color: #816a3d; }
.legal-delivery-card { color: #176d55; background: linear-gradient(135deg, #e9fbf5, #fbfffd); border-color: #c6eddf; }
.legal-delivery-card > span { background: linear-gradient(145deg, #30ca93, #0b875e); box-shadow: 0 12px 24px rgba(11,135,94,.18); }
.legal-delivery-card small { color: #508774; }
.legal-delivery-card p { color: #5e8175; }

.legal-contact-section { background: linear-gradient(135deg, #faf9ff, #f1edff); }

.contact-content-section { padding-top: 78px; }
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 35px;
    align-items: start;
}
.contact-primary,
.contact-details-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 27px;
    box-shadow: var(--shadow-soft);
}
.contact-primary { padding: 42px; }
.contact-label {
    display: inline-flex;
    padding: 7px 11px;
    color: var(--primary-dark);
    background: #f0edff;
    border: 1px solid #ddd5ff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .65px;
    text-transform: uppercase;
}
.contact-primary h2 {
    max-width: 620px;
    margin: 20px 0 13px;
    font-size: clamp(31px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -1.7px;
}
.contact-primary > p { max-width: 670px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.contact-main-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 15px;
    margin-top: 28px;
    padding: 17px;
    color: #fff;
    background: linear-gradient(135deg, #6943f6, #36199f);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(58,32,158,.22);
}
.contact-main-card > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    font-size: 21px;
    font-weight: 950;
}
.contact-main-card div { min-width: 0; display: flex; flex-direction: column; }
.contact-main-card small { color: #d9d1ff; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .65px; }
.contact-main-card strong { overflow-wrap: anywhere; font-size: 15px; }
.contact-main-card b { font-size: 22px; }
.contact-support-list { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 24px; }
.contact-support-list > div {
    display: flex;
    gap: 11px;
    padding: 16px;
    background: #faf9fd;
    border: 1px solid #ece9f3;
    border-radius: 15px;
}
.contact-support-list i {
    flex: 0 0 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: #ece7ff;
    border-radius: 8px;
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
}
.contact-support-list span { display: flex; flex-direction: column; }
.contact-support-list strong { font-size: 11px; }
.contact-support-list small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.55; }

.contact-details-card { position: sticky; top: 166px; overflow: hidden; }
.contact-brand-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 28px;
    color: #fff;
    background: linear-gradient(135deg, #21163e, #4b2bb8);
}
.contact-brand-row div { display: flex; flex-direction: column; }
.contact-brand-row small { color: #c9bfff; font-size: 9px; text-transform: uppercase; letter-spacing: .7px; font-weight: 800; }
.contact-brand-row strong { font-size: 16px; }
.contact-details-card dl { margin: 0; padding: 8px 28px 24px; }
.contact-details-card dl > div { padding: 18px 0; border-bottom: 1px solid #eceaf2; }
.contact-details-card dl > div:last-child { border-bottom: 0; }
.contact-details-card dt { margin-bottom: 5px; color: #9690a2; font-size: 9px; text-transform: uppercase; letter-spacing: .7px; font-weight: 900; }
.contact-details-card dd { margin: 0; color: #393447; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.contact-details-card dd a { color: var(--primary-dark); font-weight: 850; }
.contact-admin-note { margin: 0 20px 20px; padding: 15px; color: #775000; background: #fff7dd; border: 1px solid #efd797; border-radius: 13px; }
.contact-admin-note strong { display: block; font-size: 11px; }
.contact-admin-note p { margin: 4px 0 0; color: #896b30; font-size: 9px; line-height: 1.55; }

@media (max-width: 980px) {
    .legal-layout,
    .legal-layout-compact { grid-template-columns: 1fr; }
    .legal-toc {
        position: static;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
        border-radius: 16px;
        scrollbar-width: none;
    }
    .legal-toc::-webkit-scrollbar { display: none; }
    .legal-toc > span { display: none; }
    .legal-toc a { flex: 0 0 auto; white-space: nowrap; background: #f7f5fc; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-details-card { position: static; }
}

@media (max-width: 850px) {
    .legal-page-nav { top: 68px; }
}

@media (max-width: 620px) {
    .legal-hero { padding: 62px 0 58px; }
    .legal-hero h1 { font-size: 43px; letter-spacing: -2.2px; }
    .legal-hero p { font-size: 14px; }
    .legal-meta { align-items: center; flex-direction: column; }
    .legal-page-nav-inner { justify-content: flex-start; min-height: 58px; }
    .legal-page-nav a { padding: 8px 12px; }
    .legal-content-section { padding: 45px 0 76px; }
    .legal-layout { gap: 20px; }
    .legal-document { border-radius: 21px; }
    .legal-document > section { padding: 27px 21px; scroll-margin-top: 145px; }
    .legal-document h2 { font-size: 20px; }
    .legal-document h3 { font-size: 14px; }
    .legal-document p,
    .legal-document ul,
    .legal-document ol { font-size: 12px; }
    .legal-summary-card,
    .legal-decision-card { grid-template-columns: 43px 1fr; gap: 12px; margin: 20px 20px 0; padding: 16px; }
    .legal-summary-card > span,
    .legal-decision-card > span { width: 43px; height: 43px; border-radius: 12px; font-size: 17px; }
    .legal-summary-card strong,
    .legal-decision-card strong { font-size: 13px; }
    .contact-content-section { padding-top: 48px; }
    .contact-primary { padding: 27px 21px; }
    .contact-primary h2 { font-size: 34px; }
    .contact-main-card { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .contact-main-card > span { width: 42px; height: 42px; }
    .contact-main-card strong { font-size: 12px; }
    .contact-support-list { grid-template-columns: 1fr; }
    .contact-brand-row,
    .contact-details-card dl { padding-left: 21px; padding-right: 21px; }
}
