/* ============================================================================
   Software4.net — Legal pages (Privacy, Terms)
   ----------------------------------------------------------------------------
   These pages carry compliance content — including the SMS/Mobile Information
   clause and the SMS Communications section added for Twilio toll-free
   verification — so the content itself is untouched. This styles the document
   around it: a clear hero, readable measure, and heading hierarchy that makes
   a long policy scannable rather than a wall of text.
   ========================================================================== */

.legal-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(140deg, #050F1F 0%, #071A33 46%, #0B3B73 100%);
    padding: clamp(108px, 12vw, 150px) 0 clamp(52px, 6vw, 76px);
}
.legal-hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 66% 74% at 50% 40%, #000 14%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 66% 74% at 50% 40%, #000 14%, transparent 72%);
}
.legal-hero > .container { position: relative; z-index: 2; }
.legal-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.legal-hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.88);
    padding: .38rem .9rem; border-radius: 6px;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.legal-hero-title {
    margin: 1.2rem 0 .9rem;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    font-weight: 800; line-height: 1.12; letter-spacing: -.03em; color: #fff;
}
.legal-hero-meta {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .85rem; color: rgba(255,255,255,.6); margin: 0;
}
.legal-hero-meta i { color: #18BFE8; font-size: .8rem; }

/* ── Document ────────────────────────────────────────────────────────── */
/* The policy sits on a white sheet rather than directly on the page
   background — it reads as a document, and the edge gives the long text
   somewhere to end. */
.legal-doc {
    background: #FFFFFF;
    border: 1px solid #E8EEF6;
    border-radius: 18px;
    padding: clamp(1.75rem, 4vw, 3.25rem);
    box-shadow: 0 24px 54px -30px rgba(7,26,51,.22);
    font-size: 1rem !important;
    line-height: 1.85 !important;
    color: #475569 !important;
    max-width: 920px;
    margin: 0 auto;
}

/* Numbered section headings. A policy is scanned far more often than read
   start to finish, so the headings need to stand clearly apart from body
   copy and carry a visible accent rule. */
.legal-doc h2 {
    position: relative;
    font-size: clamp(1.12rem, 1.8vw, 1.32rem) !important;
    font-weight: 750 !important;
    letter-spacing: -.02em;
    color: #071A33 !important;
    margin: 2.6rem 0 1rem !important;
    padding-top: 1.6rem;
    border-top: 1px solid #EEF2F7;
}
.legal-doc h2:first-of-type { margin-top: .4rem !important; padding-top: 0; border-top: none; }
.legal-doc h2::after {
    content: ''; position: absolute; left: 0; bottom: -.55rem;
    width: 36px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, #1677FF, #18BFE8);
}

.legal-doc h3 {
    font-size: 1.02rem !important; font-weight: 700 !important;
    color: #0B3B73 !important; margin: 1.8rem 0 .7rem !important;
    letter-spacing: -.012em;
}
.legal-doc p { margin-bottom: 1.15rem; }
.legal-doc p strong, .legal-doc strong { color: #071A33; font-weight: 700; }

.legal-doc ul, .legal-doc ol { margin: 0 0 1.4rem; padding-left: 0; list-style: none; }
.legal-doc ul li {
    position: relative; padding-left: 1.5rem; margin-bottom: .7rem; line-height: 1.75;
}
.legal-doc ul li::before {
    content: ''; position: absolute; left: .15rem; top: .68em;
    width: 6px; height: 6px; border-radius: 2px; background: #18BFE8;
}
.legal-doc ol { counter-reset: legal-ol; }
.legal-doc ol li {
    position: relative; padding-left: 1.9rem; margin-bottom: .7rem;
    counter-increment: legal-ol; line-height: 1.75;
}
.legal-doc ol li::before {
    content: counter(legal-ol);
    position: absolute; left: 0; top: .1em;
    width: 1.35rem; height: 1.35rem; border-radius: 6px;
    background: rgba(22,119,255,.1); color: #1677FF;
    font-size: .72rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.legal-doc a {
    color: #0B3B73; font-weight: 600; text-decoration: none;
    border-bottom: 1px solid rgba(22,119,255,.32);
    transition: color .2s ease, border-color .2s ease;
}
.legal-doc a:hover { color: #1677FF; border-bottom-color: #1677FF; }

.legal-doc table {
    width: 100%; border-collapse: collapse; margin: 0 0 1.5rem;
    font-size: .92rem;
}
.legal-doc th, .legal-doc td {
    padding: .7rem .85rem; border: 1px solid #E8EEF6; text-align: left;
}
.legal-doc th { background: #F7F9FC; color: #071A33; font-weight: 700; }

/* Trailing disclaimer paragraph */
.legal-doc > p:last-child {
    margin-top: 2.2rem; padding-top: 1.4rem;
    border-top: 1px solid #EEF2F7;
    font-size: .855rem; color: #94A3B8;
}

@media (max-width: 575.98px) {
    .legal-doc { border-radius: 14px; padding: 1.35rem; }
    .legal-doc h2 { margin-top: 2rem !important; }
}

/* Policies remain document-like, but use the same dark glass surface. */
body.public-inner-page .legal-doc {
    background: rgba(13,34,61,.88);
    border-color: rgba(117,181,231,.2);
    color: #b7c7db !important;
    box-shadow: 0 30px 72px -40px rgba(0,0,0,.95);
}
body.public-inner-page .legal-doc h2,
body.public-inner-page .legal-doc p strong,
body.public-inner-page .legal-doc strong { color: #f5f9ff !important; }
body.public-inner-page .legal-doc h3 { color: #69dfff !important; }
body.public-inner-page .legal-doc h2,
body.public-inner-page .legal-doc > p:last-child { border-color: rgba(117,181,231,.14); }
body.public-inner-page .legal-doc th,
body.public-inner-page .legal-doc td { border-color: rgba(117,181,231,.18); }
body.public-inner-page .legal-doc th { background: rgba(117,181,231,.08); color: #edf6ff; }
body.public-inner-page .legal-doc a { color: #69dfff; }
