:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
    background: #f7f8fa;
    font-synthesis: none;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #f7f8fa;
    color: #1f2937;
    line-height: 1.7;
}

a { color: #174ea6; }
a:hover { color: #103c82; }

.legal-shell {
    width: min(100% - 32px, 1040px);
    margin: 0 auto;
    padding: 24px 0 48px;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.legal-brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.legal-brand-name {
    color: #111827;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.legal-brand {
    position: relative;
    display: block;
    flex: 0 0 138px;
    width: 138px;
    height: 92px;
    overflow: hidden;
    line-height: 0;
}

.legal-brand img {
    position: absolute;
    top: -36px;
    left: 0;
    display: block;
    width: 138px;
    height: auto;
}

.back-link {
    display: inline-block;
    flex: 0 0 auto;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
    padding: 14px 16px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.legal-nav a, .legal-nav .current {
    font-size: 14px;
    font-weight: 700;
}

.legal-nav a { text-decoration: none; }
.legal-nav a:hover { text-decoration: underline; }
.legal-nav .current {
    padding: 4px 8px;
    border-radius: 6px;
    background: #f7f8fa;
    color: #111827;
}

.legal-main {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: clamp(22px, 5vw, 52px);
}

h1, h2 { color: #111827; line-height: 1.25; }
h1 { margin: 0; font-size: clamp(28px, 5vw, 38px); }
h2 { margin: 38px 0 14px; font-size: clamp(21px, 3vw, 25px); }

.eyebrow {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
}

.document-header {
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.document-content { max-width: 78ch; margin: 0 auto; }
.document-content p { margin: 13px 0; }
.document-content h2 { padding-top: 10px; }
.document-content ul { margin: 10px 0 18px; padding-left: 26px; }
.document-content li { margin: 5px 0; padding-left: 3px; }

.overview-header { margin-bottom: 28px; }
.legal-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.legal-card {
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 20px;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    text-decoration: none;
}
.legal-card:hover { border-color: #9ca3af; background: #fafafa; }
.card-title { color: #111827; font-size: 18px; font-weight: 700; line-height: 1.4; }
.card-description { margin-top: 8px; color: #4b5563; font-size: 14px; }
.card-link { margin-top: auto; padding-top: 14px; color: #174ea6; font-size: 14px; font-weight: 700; }
.legal-card:last-child { grid-column: 1 / -1; }

.legal-footer { padding: 20px 4px 0; color: #6b7280; font-size: 13px; text-align: center; }

@media (max-width: 640px) {
    .legal-shell { width: min(100% - 20px, 1040px); padding-top: 14px; }
    .legal-header { align-items: flex-start; flex-wrap: wrap; gap: 6px 14px; }
    .legal-brand-lockup { flex: 1 1 100%; gap: 8px; }
    .legal-brand { flex-basis: 102px; width: 102px; height: 68px; }
    .legal-brand img { top: -27px; width: 102px; }
    .legal-brand-name { font-size: 15px; }
    .back-link { margin-bottom: 12px; }
    .legal-nav { gap: 8px 13px; padding: 12px; }
    .legal-nav a, .legal-nav .current { font-size: 13px; }
    .legal-main { padding: 22px 17px; }
    .legal-cards { grid-template-columns: 1fr; }
    .legal-card { min-height: 132px; }
}
