:root {
    --tt-bg: #060606;
    --tt-bg-alt: #0e0906;
    --tt-panel: rgba(20, 13, 9, 0.92);
    --tt-panel-border: rgba(255, 132, 39, 0.22);
    --tt-text: #ffffff;
    --tt-text-dim: rgba(255, 232, 214, 0.74);
    --tt-text-faint: rgba(255, 219, 191, 0.55);
    --tt-accent: #ff5a0f;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.tt-legal-page {
    margin: 0;
    background:
        radial-gradient(circle at top center, rgba(255, 96, 0, 0.16), transparent 32%),
        linear-gradient(180deg, #090909 0%, #040404 100%);
    color: var(--tt-text);
    font-family: Inter, "Segoe UI", sans-serif;
}

#tt-particle-canvas {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.tt-legal-shell {
    min-height: 100vh;
    position: relative;
}

.tt-legal-nav,
.tt-legal-main,
.tt-legal-footer {
    position: relative;
    z-index: 1;
}

.tt-legal-nav {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: blur(18px);
}

.tt-legal-logo {
    color: var(--tt-text);
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
}

.tt-legal-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tt-legal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tt-legal-btn:hover,
.tt-legal-btn:focus-visible {
    transform: translateY(-1px);
}

.tt-legal-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--tt-text);
    background: rgba(255, 255, 255, 0.02);
}

.tt-legal-btn-primary {
    background: linear-gradient(180deg, #ff6e16, #d25200);
    color: var(--tt-text);
}

.tt-legal-main {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 72px 40px 88px;
}

.tt-legal-hero {
    margin-bottom: 36px;
    padding: 34px 36px;
    border: 1px solid var(--tt-panel-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 108, 28, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(17, 11, 7, 0.94), rgba(10, 7, 5, 0.96));
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.38),
        inset 0 0 0 1px rgba(255, 122, 18, 0.05);
}

.tt-legal-eyebrow {
    margin-bottom: 16px;
    color: var(--tt-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.tt-legal-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.tt-legal-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--tt-text-dim);
    font-size: 18px;
    line-height: 1.7;
}

.tt-legal-grid {
    display: grid;
    gap: 20px;
}

.tt-legal-card {
    padding: 28px;
    border: 1px solid var(--tt-panel-border);
    border-radius: 18px;
    background: var(--tt-panel);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.tt-legal-card h2 {
    margin: 0 0 14px;
    color: #fff2e3;
    font-size: 24px;
}

.tt-legal-card p {
    margin: 0 0 14px;
    color: var(--tt-text-dim);
    line-height: 1.75;
}

.tt-legal-card p:last-child {
    margin-bottom: 0;
}

.tt-legal-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.tt-legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #fff4e8;
    line-height: 1.65;
}

.tt-legal-list li::before {
    content: "\2713";
    color: var(--tt-accent);
    font-weight: 800;
    flex-shrink: 0;
}

.tt-legal-closing {
    color: var(--tt-text-faint);
}

.tt-legal-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 0 40px 36px;
    color: rgba(255, 255, 255, 0.36);
    font-size: 13px;
}

@media (max-width: 800px) {
    .tt-legal-nav,
    .tt-legal-main,
    .tt-legal-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .tt-legal-nav {
        justify-content: center;
    }

    .tt-legal-nav-actions {
        width: 100%;
        justify-content: center;
    }

    .tt-legal-btn {
        width: 100%;
    }

    .tt-legal-main {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .tt-legal-hero,
    .tt-legal-card {
        padding: 24px 20px;
    }

    .tt-legal-hero p {
        font-size: 16px;
    }

    .tt-legal-footer {
        flex-direction: column;
        text-align: center;
        padding-bottom: 28px;
    }
}
