@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --crimson: #8b0000;
  --crimson-mid: #a50000;
  --crimson-light: #c41e1e;
  --anthracite: #1a1a1a;
  --anthracite2: #242424;
  --anthracite3: #2e2e2e;
  --copper: #b87333;
  --copper-light: #d4935a;
  --cream: #f5f0e8;
  --cream-dark: #e8e0d0;
  --white: #ffffff;
  --text-muted: #9a8f80;
  --border: rgba(184, 115, 51, 0.25);
  --ff-display: "Syne", sans-serif;
  --ff-body: "Lora", Georgia, serif;
  --radius-sm: 2px;
  --radius: 4px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--ff-body);
  background: var(--anthracite);
  color: var(--cream);
  line-height: 1.65;
}
a {
  color: var(--copper);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--anthracite2);
}
::-webkit-scrollbar-thumb {
  background: var(--crimson);
  border-radius: 3px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 48px;
  height: 72px;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--copper),
    var(--crimson),
    var(--copper),
    transparent
  );
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--crimson);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  position: relative;
}
.logo-mark::after {
  content: "♦";
  font-size: 18px;
  color: var(--copper);
}
.logo-text {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo-text span {
  color: var(--copper);
}
.nav-links {
  display: none !important;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-login {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 22px;
  border: 1px solid var(--border);
  color: var(--cream);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}
.btn-login:hover {
  border-color: var(--copper);
  color: var(--copper);
  text-decoration: none;
}
.btn-signup {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 24px;
  background: var(--crimson);
  color: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--crimson);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}
.btn-signup:hover {
  background: var(--crimson-mid);
  text-decoration: none;
}

.legal-hero {
  padding: 140px 0 64px;
  background: linear-gradient(170deg, #0e0a0a 0%, var(--anthracite) 100%);
  border-bottom: 1px solid var(--border);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.legal-breadcrumb {
  font-family: var(--ff-display);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.legal-breadcrumb a {
  color: var(--copper);
}
.legal-breadcrumb span {
  margin: 0 8px;
}
.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  padding: 6px 16px;
  border: 1px solid rgba(184, 115, 51, 0.4);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: rgba(184, 115, 51, 0.08);
}
.legal-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 16px;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.legal-meta-item {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.legal-meta-item strong {
  color: var(--cream-dark);
}

.legal-body {
  padding: 64px 0 96px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
}
.toc-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
}
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-list a {
  font-family: var(--ff-body);
  font-size: 0.83rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-left: 2px solid transparent;
  display: block;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.4;
}
.toc-list a:hover {
  color: var(--cream);
  border-left-color: var(--copper);
  background: rgba(184, 115, 51, 0.05);
}

.legal-content {
}
.legal-section {
  margin-bottom: 52px;
  scroll-margin-top: 100px;
}
.legal-section-num {
  font-family: var(--ff-display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
  display: block;
}
.legal-section h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.legal-section h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-dark);
  margin: 24px 0 12px;
}
.legal-section p {
  font-family: var(--ff-body);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-section ul,
.legal-section ol {
  padding-left: 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-section li {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}
.legal-section ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--copper);
  font-size: 0.55rem;
  top: 7px;
}
.legal-section ol {
  counter-reset: legal-counter;
}
.legal-section ol li {
  counter-increment: legal-counter;
}
.legal-section ol li::before {
  content: counter(legal-counter) ".";
  position: absolute;
  left: 0;
  color: var(--copper);
  font-family: var(--ff-display);
  font-size: 0.8rem;
  font-weight: 600;
}
.legal-section a {
  color: var(--copper);
}
.legal-section strong {
  color: var(--cream-dark);
  font-weight: 600;
}

.legal-highlight {
  background: var(--anthracite2);
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 20px 0;
}
.legal-highlight p {
  margin: 0;
}

.legal-warning {
  background: rgba(139, 0, 0, 0.12);
  border-left: 3px solid var(--crimson-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 20px 0;
}
.legal-warning p {
  margin: 0;
  color: #ff9999;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.85rem;
}
.legal-table th {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  padding: 12px 16px;
  background: var(--anthracite2);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.legal-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--ff-body);
  vertical-align: top;
}
.legal-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.legal-contact {
  background: var(--anthracite2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 48px;
}
.legal-contact h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.legal-contact p {
  font-family: var(--ff-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.legal-contact a {
  color: var(--copper);
}

footer {
  background: #111111;
  border-top: 1px solid var(--border);
}
.footer-bottom {
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.copyright {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  font-family: var(--ff-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-bottom-links a:hover {
  color: var(--copper);
  text-decoration: none;
}

@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
}
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }
  .container {
    padding: 0 20px;
  }
  .nav-actions {
    display: none;
  }
}
