/* ─── Page ───────────────────────────────────────────── */
.legal-page {
    font-family: 'Inter', sans-serif;
    background: var(--color-room, #f7f6f3);
    min-height: 100vh;
}

.legal-section-inner {
    max-width: 720px;
    margin: 0 auto;
}

/* ─── Hero ───────────────────────────────────────────── */
.legal-hero {
    padding: 96px 24px 48px;
    text-align: center;
    animation: legalFadeUp 0.45s ease both;
}

.legal-hero-inner {
    max-width: 600px;
    margin: 0 auto;
}

.legal-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-ink-tertiary, #aaa);
    margin-bottom: 14px;
}

.legal-title {
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--color-ink, #0a0a0a);
    margin-bottom: 14px;
}

.legal-subtitle {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-ink-secondary, #666);
    max-width: 480px;
    margin: 0 auto;
}

/* ─── Doc List ───────────────────────────────────────── */
.legal-docs {
    padding: 0 24px 40px;
    animation: legalFadeUp 0.45s 0.08s ease both;
}

.legal-doc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8e6e1;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 3px;
    text-decoration: none;
    transition: box-shadow 0.15s, background 0.15s;
}

.legal-doc-item:hover {
    background: #fafaf9;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.legal-doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f4f3f0;
    border-radius: 8px;
    flex-shrink: 0;
    color: var(--color-primary, #0a0a0a);
}

.legal-doc-text {
    flex: 1;
}

.legal-doc-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-ink, #0a0a0a);
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.legal-doc-desc {
    font-size: 13px;
    color: var(--color-ink-secondary, #777);
    line-height: 1.5;
}

.legal-doc-arrow {
    font-size: 20px;
    color: #ccc;
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
}

.legal-doc-item:hover .legal-doc-arrow {
    color: #888;
    transform: translateX(2px);
}

/* ─── Table Section ──────────────────────────────────── */
.legal-table-section {
    padding: 0 24px 40px;
    animation: legalFadeUp 0.45s 0.14s ease both;
}

.legal-section-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-ink, #0a0a0a);
    margin-bottom: 16px;
}

.legal-table-wrap {
    border: 1px solid #e8e6e1;
    border-radius: 10px;
    overflow: hidden;
    overflow-x: auto;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.legal-table thead tr {
    background: #f4f3f0;
}

.legal-table th {
    text-align: left;
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-ink, #0a0a0a);
    white-space: nowrap;
}

.legal-table tbody tr {
    border-top: 1px solid #f0ede8;
    background: #fff;
    transition: background 0.12s;
}

.legal-table tbody tr:hover {
    background: #fafaf9;
}

.legal-table td {
    padding: 11px 16px;
    color: var(--color-ink-secondary, #666);
    vertical-align: middle;
}

.legal-table-code {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--color-ink, #0a0a0a) !important;
    white-space: nowrap;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
}

/* ─── Entity Card ────────────────────────────────────── */
.legal-entity-section {
    padding: 0 24px 80px;
    animation: legalFadeUp 0.45s 0.2s ease both;
}

.legal-entity-card {
    background: #fff;
    border: 1px solid #e8e6e1;
    border-radius: 10px;
    padding: 24px 28px;
}

.legal-entity-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-ink, #0a0a0a);
    margin-bottom: 10px;
}

.legal-entity-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-ink-secondary, #666);
}

.legal-entity-contact {
    margin-top: 10px;
}

.legal-link {
    color: var(--color-primary, #0a0a0a);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(10, 10, 10, 0.25);
    transition: text-decoration-color 0.15s;
}

.legal-link:hover {
    text-decoration-color: rgba(10, 10, 10, 0.8);
}

/* ─── Animation ──────────────────────────────────────── */
@keyframes legalFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
    .legal-hero {
        padding: 64px 16px 36px;
    }

    .legal-docs,
    .legal-table-section,
    .legal-entity-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .legal-entity-card {
        padding: 20px 16px;
    }

    .legal-doc-item {
        padding: 14px 14px;
        gap: 12px;
    }
}