:root {
  color-scheme: dark;
  --legal-bg: #0a1210;
  --legal-surface: #101c18;
  --legal-surface-2: #14231e;
  --legal-text: #ecfdf5;
  --legal-muted: #9fb8ad;
  --legal-primary: #10b981;
  --legal-border: rgba(16, 185, 129, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--legal-bg);
  color: var(--legal-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: rgba(10, 18, 16, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--legal-border);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--legal-text);
  text-decoration: none;
}

.site-brand img {
  width: 76px;
  height: auto;
  display: block;
}

.site-brand-divider {
  width: 3px;
  height: 34px;
  border-radius: 999px;
  background: var(--legal-primary);
}

.site-brand-copy {
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-brand-copy span {
  display: block;
  color: var(--legal-primary);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-phone {
  color: var(--legal-muted);
  font-size: 14px;
  text-decoration: none;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--legal-border);
  border-radius: 10px;
  color: var(--legal-text);
  background: var(--legal-surface);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.site-button:hover {
  color: var(--legal-primary);
  border-color: var(--legal-primary);
  background: var(--legal-surface-2);
  text-decoration: none;
}

.legal-main {
  width: min(960px, calc(100% - 32px));
  max-width: none;
  margin: 0 auto;
  padding: 48px 0 64px;
  flex: 1;
}

.legal-heading {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
}

.legal-heading span {
  color: var(--legal-primary);
}

.legal-card,
.doc {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--legal-border);
  border-radius: 18px;
  background: var(--legal-surface);
}

.legal-card > h1 {
  margin-top: 0;
  color: var(--legal-text);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.25;
}

.legal-card h2,
.doc h2 {
  color: var(--legal-text);
  font-size: 18px;
  margin: 30px 0 12px;
}

.legal-card h3,
.doc h3 {
  color: var(--legal-text);
}

.legal-card p,
.legal-card li,
.doc p,
.doc li {
  color: var(--legal-muted);
}

.legal-card a,
.doc a {
  color: var(--legal-primary);
}

.legal-card table,
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.legal-card th,
.legal-card td,
.doc th,
.doc td {
  padding: 10px 12px;
  border: 1px solid var(--legal-border);
  text-align: left;
  vertical-align: top;
}

.legal-card th,
.doc th {
  color: var(--legal-text);
  background: rgba(16, 185, 129, 0.08);
}

.site-footer {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--legal-border);
  background: var(--legal-surface);
}

.site-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 22px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.site-footer-title {
  margin: 0 0 10px;
  color: var(--legal-text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer p,
.site-footer a {
  color: var(--legal-muted);
  font-size: 13px;
}

.site-footer a {
  display: block;
  margin: 6px 0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--legal-primary);
}

.site-footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--legal-border);
  color: var(--legal-muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .site-phone,
  .site-brand-copy {
    display: none;
  }

  .site-header-inner {
    min-height: 64px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .legal-main {
    padding-top: 30px;
  }

  .legal-card table,
  .doc table {
    display: block;
    overflow-x: auto;
  }
}
