﻿* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body.legal-page {
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background: #080711;
    overflow-x: hidden;
}
body.legal-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 56px 56px,
        radial-gradient(circle at 14% 0%, rgba(124,91,240,0.10), transparent 32%);
    opacity: 0.75;
    z-index: 0;
}
.legal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    padding: 0 max(24px, calc((100vw - 1120px) / 2));
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(8,7,17,0.86);
    backdrop-filter: blur(16px);
}
.legal-nav-brand,
.legal-nav-back {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.legal-nav-brand {
    gap: 10px;
    color: white;
    font-weight: 900;
}
.legal-nav-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b35, #7c5bf0);
}
.legal-nav-back {
    gap: 8px;
    color: rgba(255,255,255,0.82);
    font-weight: 800;
    font-size: 0.84rem;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.legal-nav-back:hover {
    color: white;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.16);
}
.legal-hero {
    position: relative;
    z-index: 1;
    padding: 104px 24px 26px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
}
.legal-hero-grid {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: block;
}
.legal-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    color: #ff8c5a;
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}
.legal-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: #ff8c5a;
    box-shadow: 0 0 0 6px rgba(255,107,53,0.12);
}
.legal-hero h1 {
    max-width: 820px;
    color: white;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    font-weight: 950;
}
.legal-hero-lead {
    max-width: 800px;
    margin-top: 14px;
    color: rgba(240,238,245,0.68);
    font-size: 1rem;
    line-height: 1.75;
}
.legal-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.legal-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    color: rgba(255,255,255,0.76);
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    font-weight: 800;
}
.legal-visual { display: none; }
.legal-main {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 96px;
}
.legal-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
}
.legal-highlight {
    min-height: auto;
    padding: 20px;
    background: transparent;
    border-right: 1px solid rgba(255,255,255,0.07);
}
.legal-highlight:last-child { border-right: 0; }
.legal-highlight i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 10px;
    color: #ff8c5a;
    background: rgba(255,107,53,0.10);
    border: 1px solid rgba(255,107,53,0.16);
}
.legal-highlight h3 {
    color: white;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.legal-highlight p {
    color: rgba(240,238,245,0.58);
    line-height: 1.65;
    font-size: 0.86rem;
}
.legal-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.legal-toc {
    position: sticky;
    top: 92px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
}
.legal-toc strong {
    display: block;
    color: white;
    font-size: 0.74rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.legal-toc a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    color: rgba(240,238,245,0.60);
    text-decoration: none;
    font-size: 0.87rem;
    font-weight: 700;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.legal-toc a:hover { color: white; }
.legal-toc a span {
    min-width: 24px;
    color: #ff8c5a;
    font-size: 0.7rem;
    letter-spacing: 1px;
}
.legal-sections {
    display: grid;
    gap: 14px;
}
.legal-section {
    position: relative;
    padding: 26px;
    border-radius: 16px;
    background: rgba(255,255,255,0.038);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}
.legal-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 999px;
    background: #ff8c5a;
    opacity: 0.75;
}
.legal-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.legal-index {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    font-weight: 950;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.09);
}
.legal-section h2 {
    color: white;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 7px;
}
.legal-section p {
    color: rgba(240,238,245,0.66);
    font-size: 0.94rem;
    line-height: 1.82;
}
.legal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
    list-style: none;
}
.legal-list li {
    position: relative;
    padding: 12px 12px 12px 38px;
    border-radius: 12px;
    color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.065);
    line-height: 1.55;
    font-size: 0.9rem;
}
.legal-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 13px;
    top: 12px;
    color: #ff8c5a;
    font-size: 0.72rem;
}
.legal-table-wrap {
    overflow-x: auto;
    margin-top: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}
.legal-table th,
.legal-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.065);
}
.legal-table th {
    color: white;
    background: rgba(255,255,255,0.055);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.legal-table td {
    color: rgba(240,238,245,0.68);
    font-size: 0.9rem;
}
.legal-table tr:last-child td { border-bottom: 0; }
.legal-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    background: rgba(255,107,53,0.07);
    border: 1px solid rgba(255,107,53,0.12);
}
.legal-contact-panel {
    margin-top: 12px;
    padding: 24px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.09);
}
.legal-contact-panel h3 {
    color: white;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.legal-contact-panel p {
    color: rgba(240,238,245,0.62);
    line-height: 1.7;
}
.legal-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    padding: 12px 18px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 900;
    background: #ff6b35;
    transition: transform 0.2s, background 0.2s;
}
.legal-contact-btn:hover { transform: translateY(-1px); background: #ff7d4d; }
.legal-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}
.legal-bottom-links a {
    color: rgba(255,255,255,0.70);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.075);
}
.legal-bottom-links a:hover { color: white; border-color: rgba(255,255,255,0.16); }
@media (max-width: 980px) {
    .legal-highlights { grid-template-columns: 1fr; }
    .legal-highlight { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
    .legal-highlight:last-child { border-bottom: 0; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
    .legal-toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
}
@media (max-width: 680px) {
    .legal-nav { height: 62px; padding: 0 14px; }
    .legal-nav-brand span { display: none; }
    .legal-nav-back { padding: 8px 10px; font-size: 0.76rem; }
    .legal-hero { padding: 96px 16px 26px; }
    .legal-main { width: calc(100% - 28px); padding-bottom: 70px; }
    .legal-hero h1 { font-size: clamp(2rem, 12vw, 3rem); }
    .legal-hero-lead { font-size: 0.95rem; }
    .legal-list { grid-template-columns: 1fr; }
    .legal-section { padding: 22px 18px; }
    .legal-section-head { gap: 12px; }
    .legal-index { width: 36px; height: 36px; }
    .legal-contact-panel { grid-template-columns: 1fr; padding: 20px; }
    .legal-contact-btn { justify-content: center; width: 100%; white-space: normal; text-align: center; }
    .legal-toc nav { grid-template-columns: 1fr; }
}