:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-bg: #FFFFFF;
  --text-primary: #090E34;
  --text-secondary: #637086;
  --accent: #4A6CF7;
  --border: #E9ECF2;
  color: var(--text-primary);
  background: var(--page-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
}

.site-header {
  width: min(100% - 56px, 1180px);
  margin: 0 auto;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
}

.brand:focus-visible,
.privacy-policy a:focus-visible,
.site-credit a:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(74, 108, 247, 0.24);
  outline-offset: 3px;
}

.brand__icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand__name {
  white-space: nowrap;
}

.privacy-page {
  width: min(100% - 48px, 760px);
  margin: 0 auto;
  padding: 72px 0 88px;
}

.privacy-policy h1,
.privacy-policy h2,
.privacy-policy h3,
.privacy-policy p {
  overflow-wrap: break-word;
}

.privacy-policy h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.privacy-policy .last-updated {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.privacy-policy h2 {
  margin: 48px 0 16px;
  color: var(--text-primary);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.privacy-policy h3 {
  margin: 30px 0 12px;
  color: var(--text-primary);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
}

.privacy-policy p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
}

.privacy-policy a,
.site-credit a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.privacy-policy a:hover,
.site-credit a:hover {
  text-decoration-thickness: 2px;
}

.site-credit {
  width: min(100% - 48px, 760px);
  margin: 0 auto;
  padding: 0 0 24px;
  color: var(--text-secondary);
  font-size: 0.68rem;
  line-height: 1.4;
  text-align: center;
}

.site-credit a {
  color: var(--text-secondary);
}

.site-credit a:hover,
.site-credit a:focus-visible {
  color: var(--accent);
}

@media (max-width: 700px) {
  .site-header {
    width: calc(100% - 32px);
    padding: 20px 0;
  }

  .privacy-page {
    width: calc(100% - 32px);
    padding: 48px 0 64px;
  }

  .privacy-policy h2 {
    margin-top: 40px;
    font-size: 1.35rem;
  }

  .privacy-policy h3 {
    font-size: 1.08rem;
  }

  .privacy-policy p {
    line-height: 1.7;
  }

  .site-credit {
    width: calc(100% - 32px);
    padding-bottom: 18px;
  }
}

@media (max-width: 420px) {
  .privacy-page {
    width: calc(100% - 24px);
    padding-top: 40px;
  }

  .privacy-policy h1 {
    font-size: 2.15rem;
  }

  .privacy-policy p {
    font-size: 0.96rem;
  }
}
