/* Legal document pages — not product landings, not the About story page. */

body.vv-legal {
    --ink: #141b24;
    --navy: #0b1f33;
    --blue: #2563eb;
    --paper: #f3f4f6;
    --card: #fff;
    --muted: #5c6570;
    --line: #e5e7eb;
    font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    user-select: text;
    -webkit-user-select: text;
}

.vv-legal a { color: inherit; }

.vv-lg-wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
}

.vv-lg-hero {
    padding: 56px 0 36px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.vv-lg-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 10px;
}

.vv-lg-hero h1 {
    font-size: clamp(32px, 4.5vw, 46px);
    letter-spacing: -0.035em;
    margin: 0 0 10px;
}

.vv-lg-hero p {
    margin: 0;
    max-width: 38rem;
    font-size: 17px;
    line-height: 1.55;
    color: var(--muted);
}

.vv-lg-main { padding: 40px 0 80px; }

.vv-lg-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.vv-lg-toc {
    position: sticky;
    top: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 16px;
}

.vv-lg-toc strong {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.vv-lg-toc a {
    display: block;
    padding: 7px 8px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.vv-lg-toc a:hover {
    background: #eef2f7;
    color: var(--blue);
}

.vv-lg-doc {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px 40px 40px;
    overflow: hidden;
}

.vv-lg-note,
.vv-lg-warn,
.vv-lg-info {
    border-radius: 12px;
    padding: 16px 18px;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.55;
}

.vv-lg-note {
    background: #eef4ff;
    border: 1px solid #dbeafe;
    color: #1e3a5f;
}

.vv-lg-warn {
    background: #fff8e6;
    border: 1px solid #f3e2a9;
    color: #6b5400;
}

.vv-lg-info {
    background: #e8f6f8;
    border: 1px solid #b8e0e6;
    color: #0c5460;
}

.vv-lg-note p,
.vv-lg-warn p,
.vv-lg-info p { margin: 0; color: inherit; }

.vv-lg-doc h2 {
    font-size: 22px;
    letter-spacing: -0.02em;
    margin: 36px 0 12px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.vv-lg-doc h2:first-of-type {
    margin-top: 8px;
    border-top: 0;
    padding-top: 0;
}

.vv-lg-doc h3 {
    font-size: 17px;
    margin: 24px 0 8px;
}

.vv-lg-doc p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.7;
    color: #3d4652;
}

.vv-lg-doc ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.vv-lg-doc li {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.65;
    color: #3d4652;
}

.vv-lg-doc a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.vv-lg-doc a:hover { text-decoration: underline; }

.vv-lg-more {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vv-lg-more a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    background: #f8fafc;
}

.vv-lg-more a:hover {
    border-color: #bfdbfe;
    color: var(--blue);
}

@media (max-width: 860px) {
    .vv-lg-layout { grid-template-columns: 1fr; }
    .vv-lg-toc { position: static; }
    .vv-lg-toc a { display: inline-block; }
}

@media (max-width: 640px) {
    .vv-lg-wrap { padding: 0 18px; }
    .vv-lg-hero { padding: 40px 0 28px; }
    .vv-lg-doc { padding: 24px 20px 28px; }
}
