/* =========================================
   LEGAL PAGE (Privacy Policy + Terms)
   Prefix: lg-  |  Load AFTER style.css and navbar.css
========================================= */
html { scroll-behavior: smooth; }

.lg-hero {
    padding: 70px 5% 50px;
    text-align: center;
    background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 100%);
    border-bottom: 1px solid #dce8f5;
}

.lg-hero h1 {
    font-size: clamp(2rem, 4.6vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: #0b2a5b;
}

.lg-hero p {
    max-width: 640px;
    margin: 14px auto 0;
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.7;
    color: #475569;
}

/* ---------- Jump tabs ---------- */
.lg-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.lg-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 26px;
    font-size: 15px;
    font-weight: 600;
    color: #0657A3;
    background: #fff;
    border: 2px solid #0657A3;
    border-radius: 50px;
    transition: background 0.25s ease, color 0.25s ease;
}

.lg-tab:hover,
.lg-tab.active {
    color: #fff;
    background: #0657A3;
}

.lg-tab:focus-visible,
.lg-toc a:focus-visible,
.lg-top:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

/* ---------- Layout ---------- */
.lg-wrap {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0 80px;
}

.lg-section {
    scroll-margin-top: 110px;
    margin-bottom: 70px;
    padding: 40px clamp(20px, 4vw, 44px);
    background: #fff;
    border: 2px solid #e5edf7;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(6, 87, 163, 0.06);
}

.lg-section:last-of-type { margin-bottom: 0; }

/* the section a footer link jumped to */
.lg-section:target {
    border-color: #0657A3;
    box-shadow: 0 14px 35px rgba(6, 87, 163, 0.16);
}

.lg-section > h2 {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    color: #0657A3;
}

.lg-updated {
    margin: 8px 0 24px;
    font-size: 14px;
    color: #64748b;
}

.lg-intro,
.lg-section p,
.lg-section li {
    font-size: 15px;
    line-height: 1.85;
    color: #475569;
}

.lg-section p { margin-bottom: 14px; }

.lg-section a { color: #0657A3; font-weight: 500; }
.lg-section a:hover { text-decoration: underline; }

/* ---------- Table of contents ---------- */
.lg-toc {
    margin: 24px 0 8px;
    padding: 20px 24px;
    background: #f4f8ff;
    border: 1px solid #dce8f5;
    border-radius: 14px;
}

.lg-toc h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #14213d;
}

.lg-toc ol {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 36px;
}

.lg-toc li { margin-bottom: 4px; font-size: 14px; break-inside: avoid; }

/* ---------- Clauses ---------- */
.lg-clause {
    scroll-margin-top: 110px;
    margin-top: 32px;
}

.lg-clause h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #14213d;
}

.lg-section ul {
    list-style: disc;
    margin: 0 0 14px;
    padding-left: 22px;
}

.lg-section ul li { margin-bottom: 6px; }

.lg-note {
    padding: 14px 18px;
    margin: 14px 0;
    background: #edf5ff;
    border-left: 4px solid #0657A3;
    border-radius: 0 10px 10px 0;
}

.lg-contact {
    margin-top: 14px;
    padding: 20px 24px;
    background: #f4f8ff;
    border: 1px solid #dce8f5;
    border-radius: 14px;
}

.lg-contact p { margin-bottom: 8px; }
.lg-contact p:last-child { margin-bottom: 0; }

/* ---------- Back to top ---------- */
.lg-top {
    display: inline-block;
    margin-top: 28px;
    font-size: 14px;
    font-weight: 600;
    color: #0657A3;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .lg-hero { padding: 50px 5% 36px; }
    .lg-wrap { padding: 40px 0 60px; }
    .lg-section { margin-bottom: 44px; padding: 28px 18px; border-radius: 16px; }
    .lg-toc ol { columns: 1; }
}

@media (max-width: 480px) {
    .lg-tab { width: 100%; }
    .lg-clause h3 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lg-tab { transition: none; }
}