:root {
    --background: #09090b;
    --foreground: #fafafa;
    --muted: #27272a;
    --muted-foreground: #a1a1aa;
    --border: #27272a;
    --main-color: #f76300;
    --radius: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--main-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 0 2rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(12px);
    z-index: 50;
    border-bottom: 1px solid var(--border);
}

header .logo img {
    height: 28px;
    display: block;
}

header nav a {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    transition: color 0.2s;
}

header nav a:hover {
    color: var(--foreground);
    text-decoration: none;
}

/* Page layout */
.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.legal-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(247, 99, 0, 0.1);
    border: 1px solid rgba(247, 99, 0, 0.3);
    color: var(--main-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
}

.legal-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.legal-meta {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Content */
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.legal-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.legal-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.legal-section h2 .section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    background: var(--main-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.legal-section p {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

.legal-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0;
}

.legal-section ul li {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    padding-left: 1.25rem;
    position: relative;
}

.legal-section ul li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--main-color);
}

.highlight-box {
    background: rgba(247, 99, 0, 0.06);
    border: 1px solid rgba(247, 99, 0, 0.2);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.highlight-box strong {
    color: var(--foreground);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

footer a {
    color: var(--muted-foreground);
}

footer a:hover {
    color: var(--foreground);
}

@media (max-width: 640px) {
    .legal-wrapper {
        padding: 2.5rem 1.25rem 4rem;
    }

    .legal-header h1 {
        font-size: 1.75rem;
    }
}
