/* =========================================================
   Legal page styles - extends styles.css
   ========================================================= */

.legal-body {
    background: #ffffff;
    color: var(--ink);
}

.legal-main {
    background: #ffffff;
}

/* HERO */
.legal-hero {
    position: relative;
    background: radial-gradient(120% 80% at 50% -10%, #2A1766 0%, var(--navy) 55%, #0A0520 100%);
    color: var(--white);
    padding: 160px 0 110px;
    overflow: hidden;
    text-align: center;
}
.legal-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px 320px at 25% 30%, rgba(139, 92, 246, 0.35), transparent 60%),
        radial-gradient(520px 360px at 75% 20%, rgba(212, 0, 110, 0.32), transparent 60%);
    pointer-events: none;
    filter: blur(8px);
}
.legal-hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.legal-title {
    font-size: clamp(44px, 7vw, 84px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin: 6px 0 4px;
}
.legal-sub {
    font-size: 19px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
    margin: 0;
}
.legal-meta {
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

/* PROMISES */
.promises {
    background: #ffffff;
    padding: 80px 0 40px;
    position: relative;
    margin-top: -60px;
}
.promises-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.promise-card {
    background: #fff;
    border: 1px solid rgba(45, 27, 105, 0.08);
    border-radius: 22px;
    padding: 28px 26px;
    box-shadow: 0 14px 40px rgba(45, 27, 105, 0.08);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.promise-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(212, 0, 110, 0.12), transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.promise-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 0, 110, 0.35);
    box-shadow: 0 24px 56px rgba(212, 0, 110, 0.16);
}
.promise-card:hover::before { opacity: 1; }
.promise-num {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}
.promise-card h3 {
    margin: 4px 0 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.3;
}
.promise-card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(45, 27, 105, 0.75);
}

/* DETAIL CONTENT */
.legal-body-section {
    padding: 60px 0 110px;
    background: #ffffff;
}
.legal-content {
    max-width: 820px;
    color: var(--ink);
}
.legal-block {
    padding: 36px 0;
    border-bottom: 1px solid rgba(45, 27, 105, 0.1);
}
.legal-block:last-of-type { border-bottom: none; }
.legal-block h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: var(--ink);
    position: relative;
    padding-left: 18px;
}
.legal-block h2::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 4px; height: calc(100% - 16px);
    background: var(--gradient);
    border-radius: 4px;
}
.legal-block h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 22px 0 8px;
    color: var(--magenta);
}
.legal-block p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(45, 27, 105, 0.85);
}
.legal-block strong { color: var(--ink); font-weight: 700; }

.legal-list {
    list-style: none;
    padding: 0;
    margin: 14px 0;
    display: grid;
    gap: 10px;
}
.legal-list li {
    position: relative;
    padding: 12px 16px 12px 36px;
    border-radius: 12px;
    background: #FAFAFC;
    border: 1px solid rgba(45, 27, 105, 0.08);
    font-size: 15.5px;
    line-height: 1.55;
    color: rgba(45, 27, 105, 0.88);
}
ul.legal-list li::before {
    content: '';
    position: absolute;
    left: 14px; top: 18px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--magenta);
    box-shadow: 0 0 0 4px rgba(212, 0, 110, 0.14);
}
ol.legal-list { counter-reset: legal-counter; }
ol.legal-list li { counter-increment: legal-counter; }
ol.legal-list li::before {
    content: counter(legal-counter);
    position: absolute;
    left: 8px; top: 10px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--magenta);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 3px rgba(212, 0, 110, 0.14);
}
ol.legal-list li { padding-left: 44px; }

/* CONTACT */
.contact-block { padding-top: 44px; }
.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 26px;
    border-radius: 20px;
    background: linear-gradient(160deg, #fff 0%, #FFF3F9 100%);
    border: 1px solid rgba(212, 0, 110, 0.25);
    box-shadow: 0 18px 44px rgba(212, 0, 110, 0.12);
    text-decoration: none;
    color: var(--ink);
    margin: 14px 0 18px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 0, 110, 0.55);
    box-shadow: 0 26px 56px rgba(212, 0, 110, 0.2);
}
.contact-meta { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(45, 27, 105, 0.6);
}
.contact-email {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.contact-arrow {
    font-size: 26px;
    color: var(--magenta);
    transition: transform 0.25s var(--ease);
}
.contact-card:hover .contact-arrow { transform: translateX(4px); }
.contact-addr {
    font-size: 14px !important;
    color: rgba(45, 27, 105, 0.6) !important;
    margin-top: 12px !important;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .legal-hero { padding: 130px 0 90px; }
    .promises { padding: 60px 0 30px; margin-top: -50px; }
    .promises-grid { grid-template-columns: 1fr 1fr; }
    .legal-body-section { padding: 40px 0 80px; }
    .legal-block h2 { font-size: 24px; }
    .contact-card { flex-direction: column; align-items: flex-start; gap: 12px; }
    .contact-email { font-size: 20px; }
}
@media (max-width: 560px) {
    .promises-grid { grid-template-columns: 1fr; }
    .legal-block { padding: 28px 0; }
    .legal-list li { font-size: 14.5px; padding-left: 34px; }
}
