/* ═══════════════════════════════════════════════════════════════
   WKC Legal / Terms Page
   ═══════════════════════════════════════════════════════════════ */

.wkc-legal {
    font-family: var(--wkc-font);
    background: var(--wkc-bg);
    color: var(--wkc-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.wkc-legal *,
.wkc-legal *::before,
.wkc-legal *::after {
    box-sizing: border-box;
}

.legal-main {
    padding-bottom: 64px;
}

.legal-hero {
    position: relative;
    background: linear-gradient(135deg, var(--wkc-navy) 0%, var(--wkc-blue) 55%, #2563A8 100%);
    color: #fff;
    padding: 56px 0 64px;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 25%, rgba(45, 184, 78, 0.12) 0%, transparent 45%);
    pointer-events: none;
}

.legal-hero__inner {
    position: relative;
    max-width: 760px;
}

.legal-hero__eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wkc-green-bright);
    margin-bottom: 12px;
}

.legal-hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.legal-hero__sub {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.legal-wrap {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    margin-top: -28px;
    position: relative;
    z-index: 2;
}

.legal-sidebar {
    position: sticky;
    top: calc(var(--wkc-header-h, 72px) + 16px);
    background: var(--wkc-white);
    border: 1px solid rgba(12, 50, 96, 0.08);
    border-radius: 14px;
    padding: 16px 12px;
    box-shadow: 0 8px 24px rgba(12, 50, 96, 0.06);
}

.legal-sidebar__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wkc-text-muted);
    padding: 0 10px 10px;
}

.legal-doc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-doc-nav__link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--wkc-text-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.legal-doc-nav__link:hover,
.legal-doc-nav__link.is-active {
    background: var(--wkc-bg);
    color: var(--wkc-blue);
}

.legal-sidebar__contact {
    margin-top: 16px;
    padding: 14px 12px 4px;
    border-top: 1px solid rgba(12, 50, 96, 0.08);
    font-size: 12px;
    color: var(--wkc-text-muted);
}

.legal-sidebar__contact strong {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wkc-navy);
    margin-bottom: 6px;
}

.legal-sidebar__contact a {
    color: var(--wkc-blue);
    font-weight: 700;
    text-decoration: none;
}

.legal-sidebar__contact a:hover {
    text-decoration: underline;
}

.legal-content {
    min-width: 0;
}

.legal-document {
    background: var(--wkc-white);
    border: 1px solid rgba(12, 50, 96, 0.08);
    border-radius: 16px;
    padding: clamp(24px, 4vw, 36px);
    box-shadow: 0 6px 24px rgba(12, 50, 96, 0.05);
}

.legal-document__head {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(12, 50, 96, 0.08);
}

.legal-document__head h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 900;
    color: var(--wkc-navy);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.legal-document__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--wkc-text-muted);
}

.legal-document__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legal-document__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legal-section__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--wkc-navy);
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.legal-section__num {
    color: var(--wkc-blue);
    flex-shrink: 0;
}

.legal-section p {
    color: var(--wkc-text-muted);
    margin: 0 0 12px;
    font-size: 15px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.legal-list li {
    position: relative;
    padding-left: 20px;
    color: var(--wkc-text-muted);
    font-size: 15px;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wkc-green);
}

.legal-subsection {
    margin: 14px 0;
    padding: 16px 18px;
    background: var(--wkc-bg-light);
    border-radius: 12px;
    border: 1px solid rgba(12, 50, 96, 0.06);
}

.legal-subsection h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--wkc-blue);
    margin: 0 0 10px;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 12px 0;
    border-radius: 10px;
    border: 1px solid rgba(12, 50, 96, 0.08);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.legal-table th,
.legal-table td {
    padding: 12px 16px;
    text-align: left;
}

.legal-table thead {
    background: var(--wkc-bg);
}

.legal-table th {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wkc-text-muted);
}

.legal-table tbody tr:nth-child(even) {
    background: rgba(232, 244, 252, 0.35);
}

.legal-table td strong {
    color: var(--wkc-navy);
    font-weight: 800;
}

.legal-note,
.legal-commitment {
    margin-top: 8px;
    padding: 18px 20px;
    border-radius: 12px;
    border-left: 4px solid var(--wkc-green);
    background: rgba(45, 184, 78, 0.06);
}

.legal-commitment {
    border-left-color: var(--wkc-blue);
    background: var(--wkc-bg-light);
}

.legal-note h4,
.legal-commitment h4 {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wkc-navy);
    margin: 0 0 10px;
}

.legal-note p,
.legal-commitment p {
    margin: 0;
    color: var(--wkc-text-muted);
    font-size: 15px;
}

@media (max-width: 900px) {
    .legal-wrap {
        grid-template-columns: 1fr;
        margin-top: -20px;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-doc-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .legal-doc-nav__link {
        background: var(--wkc-bg);
        min-height: 100%;
    }
}

@media (max-width: 520px) {
    .legal-doc-nav {
        grid-template-columns: 1fr;
    }
}
