

:root {
  
  --c-bg: #fafafa;
  --c-fg: #1a1a1a;
  --c-muted: #e5e5e5;
  --c-accent: #2563eb;
  --c-light-bg: #ffffff;
  --c-dark-bg: #2d2d2d;
  --c-dark-fg: #ffffff;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --z-base: 0;
  --z-elevated: 10;
  --z-modal: 100;
  --z-top: 1000;
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.6;
  color: var(--c-fg);
  background-color: var(--c-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-fg);
}

h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 40px); }
h3 { font-size: clamp(20px, 3vw, 32px); }
h4 { font-size: clamp(18px, 2.5vw, 24px); }
h5, h6 { font-size: clamp(16px, 2vw, 20px); }

p {
  margin-bottom: var(--space-3);
  max-width: 65ch;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button {
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s ease;
}

button:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--c-muted);
  border-radius: var(--radius-sm);
  background-color: var(--c-bg);
  color: var(--c-fg);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-color: var(--c-accent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  background-color: var(--c-bg);
}

main {
  flex: 1;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

section {
  width: 100%;
  padding: var(--space-5) 0;
}

section:nth-child(even) {
  background-color: var(--c-light-bg);
}

section:nth-child(odd) {
  background-color: var(--c-bg);
}

section.dark {
  background-color: var(--c-dark-bg);
  color: var(--c-dark-fg);
}

section.dark h1,
section.dark h2,
section.dark h3,
section.dark h4,
section.dark h5,
section.dark h6 {
  color: var(--c-dark-fg);
}

section.dark p,
section.dark li {
  color: var(--c-dark-fg);
}

section.dark a {
  color: #60a5fa;
}

header {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  background-color: var(--c-light-bg);
  border-bottom: 1px solid var(--c-muted);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: var(--z-elevated);
}

header .brand-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

header .logo-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

header .brand-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  color: var(--c-fg);
}

footer {
  width: 100%;
  padding: var(--space-6) var(--space-4);
  background-color: var(--c-dark-bg);
  color: var(--c-dark-fg);
  margin-top: auto;
}

footer .container {
  display: grid;
  gap: var(--space-5);
}

footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
}

footer .footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

footer .footer-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-dark-fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

footer .footer-section a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
}

footer .footer-section a:hover {
  color: var(--c-dark-fg);
}

footer .footer-section a:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

footer .footer-divider {
  width: 100%;
  height: 1px;
  background-color: #444;
}

footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid #444;
  font-size: 0.85rem;
  color: #9ca3af;
}

@media (max-width: 640px) {
  footer .footer-content {
    grid-template-columns: 1fr;
  }

  footer .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

.policy-content {
  line-height: 1.8;
}

.policy-content h2 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.policy-content h3 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  font-size: 1.1rem;
}

.policy-content p {
  margin-bottom: var(--space-3);
  color: #555;
}

.policy-content ul,
.policy-content ol {
  margin-bottom: var(--space-3);
  margin-left: var(--space-4);
  color: #555;
}

.policy-content li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.policy-content code {
  background-color: var(--c-muted);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.9em;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 var(--space-4);
  }

  section {
    padding: var(--space-5) 0;
  }

  h1 { font-size: clamp(24px, 4vw, 36px); }
  h2 { font-size: clamp(20px, 3vw, 32px); }
  h3 { font-size: clamp(18px, 2.5vw, 28px); }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  header {
    padding: var(--space-3);
  }

  header .logo-svg {
    width: 32px;
    height: 32px;
  }

  header .brand-name {
    font-size: 18px;
  }

  section {
    padding: var(--space-4) 0;
  }

  .container {
    padding: 0 var(--space-3);
  }

  h1 { font-size: clamp(20px, 5vw, 28px); }
  h2 { font-size: clamp(18px, 4vw, 24px); }
  h3 { font-size: clamp(16px, 3vw, 20px); }
}
