/* ==============================================================
   LMS Campus — Legal pages (privacy-policy.html, terms-of-service.html)
   Loaded after home.css and uses its tokens. Every class here is
   lg-*, so no other stylesheet on the site can reach these pages.
   ============================================================== */

/* ===== PAGE HEADER ===== */
.lg-hero {
    position: relative; overflow: hidden;
    padding: 136px 0 56px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line-2);
}
.lg-hero-inner { position: relative; z-index: 2; }
.lg-crumbs { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.lg-crumbs a { color: var(--body); transition: var(--t); }
.lg-crumbs a:hover { color: var(--brand-ink); }
.lg-crumbs i { font-size: 9px; color: var(--faint); }
.lg-title {
    margin-top: 18px;
    font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.032em;
}
.lg-lede { margin-top: 16px; max-width: 680px; font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.6; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lg-meta li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--bg); font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.lg-meta i { color: var(--brand); font-size: 12px; }

/* ===== LAYOUT ===== */
.lg-layout {
    display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 72px; align-items: start;
    padding-top: 64px; padding-bottom: var(--section-y);
}

/* ===== CONTENTS ===== */
.lg-toc { position: sticky; top: 96px; }
.lg-toc-title {
    margin-bottom: 14px;
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.lg-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.lg-toc a {
    display: flex; gap: 10px;
    margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent;
    font-size: 14px; line-height: 1.4; color: var(--body); transition: var(--t);
}
.lg-toc a span { min-width: 20px; color: var(--faint); font-variant-numeric: tabular-nums; }
.lg-toc a:hover { color: var(--ink); }
.lg-toc a.is-active { border-left-color: var(--brand); color: var(--ink); font-weight: 600; }
.lg-toc a.is-active span { color: var(--brand-ink); }

/* ===== ARTICLE ===== */
.lg-article { max-width: 760px; }
.lg-section { padding: 40px 0; border-top: 1px solid var(--line); }
.lg-section:first-child { padding-top: 0; border-top: 0; }
.lg-section h2 {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 18px;
    font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.02em;
}
.lg-num {
    display: inline-grid; place-items: center; flex-shrink: 0;
    min-width: 34px; height: 30px; padding: 0 8px; border-radius: 9px;
    background: var(--brand-soft); color: var(--brand-ink);
    font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: 0;
}
.lg-section h3 { margin: 28px 0 10px; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.lg-section p { margin: 0 0 14px; font-size: 16px; line-height: 1.75; }
.lg-section p:last-child { margin-bottom: 0; }
.lg-section ul { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.lg-section ul:last-child { margin-bottom: 0; }
.lg-section li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.65; }
.lg-section li::before {
    content: ""; position: absolute; left: 4px; top: .68em;
    width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.lg-section strong { color: var(--ink-2); font-weight: 600; }
.lg-section p a, .lg-section li a {
    color: var(--brand-ink); font-weight: 500;
    text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: 3px;
    transition: var(--t);
}
.lg-section p a:hover, .lg-section li a:hover { text-decoration-color: currentColor; }
.lg-section .lg-note {
    padding: 16px 18px; border: 1px solid var(--brand-line); border-radius: var(--r);
    background: var(--brand-soft); color: var(--ink-2);
}

/* ===== CONTACT ===== */
.lg-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.lg-contact-item {
    display: flex; flex-direction: column; gap: 4px;
    padding: 18px; border: 1px solid var(--line); border-radius: var(--r);
    background: var(--bg); box-shadow: var(--shadow-xs); transition: var(--t);
}
a.lg-contact-item:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.lg-contact-item i {
    display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px;
    border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); font-size: 14px;
}
.lg-contact-label { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lg-contact-value { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }

/* ===== THE OTHER DOCUMENT ===== */
.lg-related {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 48px; padding: 22px 24px; border-radius: var(--r-lg);
    background: var(--bg-dark-2); color: #fff; transition: var(--t);
}
.lg-related:hover { background: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.lg-related small { display: block; font-size: 12.5px; color: rgba(255,255,255,.6); }
.lg-related strong { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.015em; }
.lg-related i { color: var(--brand); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .lg-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 36px; }
    .lg-toc { position: static; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft); }
    .lg-toc ol { columns: 2; column-gap: 28px; border-left: 0; }
    .lg-toc li { break-inside: avoid; }
    .lg-toc a { margin-left: 0; padding: 6px 0; border-left: 0; }
    .lg-contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .lg-hero { padding: 112px 0 40px; }
    .lg-toc ol { columns: 1; }
    .lg-section { padding: 32px 0; }
    .lg-related { margin-top: 36px; padding: 18px 20px; }
}
