:root {
  color-scheme: dark;
  --background: #121212;
  --surface: #1a1a1a;
  --floating-surface: color-mix(in srgb, var(--surface) 84%, transparent);
  --text: #e6e3df;
  --muted: #80858b;
  --accent: #9dd3d1;
  --outline: #3c4242;
  --shadow: 0 18px 48px rgb(0 0 0 / 0.28);
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #f4f7f7;
  --surface: #eef2f2;
  --floating-surface: color-mix(in srgb, var(--surface) 88%, transparent);
  --text: #161b1d;
  --muted: #6d7578;
  --accent: #3f7478;
  --outline: #bcc7c9;
  --shadow: 0 18px 48px rgb(22 27 29 / 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 104px;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

tempo-site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 10;
  display: block;
  padding: 0 20px;
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1040px);
  min-height: 64px;
  margin: 0 auto;
  padding: 10px 12px 10px 14px;
  background: var(--floating-surface);
  border: 1px solid color-mix(in srgb, var(--outline) 72%, transparent);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--outline);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-icon-light,
:root[data-theme="light"] .theme-icon-dark {
  display: none;
}

:root[data-theme="light"] .theme-icon-light {
  display: block;
}

main {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 0 32px;
}

.placeholder-section {
  min-height: 72vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--outline);
}

.legal-page {
  padding-top: 96px;
  padding-bottom: 96px;
}

h1,
h2 {
  margin: 0;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(32px, 6vw, 64px);
}

p {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  body {
    padding-top: 96px;
  }

  tempo-site-header {
    top: 12px;
    padding: 0 12px;
  }

  .site-header {
    gap: 14px;
    min-height: 60px;
    padding: 9px 10px;
  }

  .brand {
    gap: 10px;
    font-size: 16px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  main {
    padding: 0 20px;
  }

  .legal-page {
    padding-top: 72px;
  }
}
