/* Shared styles for the Contact and Terms pages */
:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --border: #e6e5e1;
  --text: #1d1d1b;
  --text-muted: #6b6963;
  --accent: #4f46e5;
  --accent-soft: #eef0ff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131312;
    --surface: #20201e;
    --border: #33332f;
    --text: #ecebe7;
    --text-muted: #a3a199;
    --accent: #8b85ff;
    --accent-soft: #2b2a45;
  }
}
:root[data-theme="dark"] {
  --bg: #131312;
  --surface: #20201e;
  --border: #33332f;
  --text: #ecebe7;
  --text-muted: #a3a199;
  --accent: #8b85ff;
  --accent-soft: #2b2a45;
  color-scheme: dark;
}
:root[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
}
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

nav {
  border-bottom: 1px solid var(--border);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.logo img {
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
}
.back {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.back:hover {
  color: var(--text);
}

main {
  padding: 56px 0 72px;
}
h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.updated {
  margin: 0 0 40px;
  color: var(--text-muted);
  font-size: 14px;
}
h2 {
  margin: 40px 0 10px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
p,
li {
  color: var(--text-muted);
}
p strong,
li strong {
  color: var(--text);
}
ul {
  padding-left: 22px;
}
li {
  margin: 6px 0;
}

.card {
  margin: 24px 0;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.card dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 16px;
  margin: 0;
}
.card dt {
  font-weight: 600;
}
.card dd {
  margin: 0;
  color: var(--text-muted);
}

footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
footer a {
  color: inherit;
  text-decoration: none;
}
footer a:hover {
  color: var(--text);
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
  .card {
    padding: 20px;
  }
  .card dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .card dd {
    margin-bottom: 10px;
  }
}
