/* Shared styles for the plain content pages: privacy, terms, contact and 404. Supports dark mode. */

:root {
  --primary: #1a365d;
  --accent: #2b6cb0;
  --bg: #f7fafc;
  --surface: #ffffff;
  --card: #ffffff;
  --text-main: #2d3748;
  --text-body: #4a5568;
  --text-light: #5a6b82;
  --heading: #1a365d;
  --border: #e2e8f0;
  --code-bg: #edf2f7;
  --callout-bg: #ebf8ff;
  --btn-bg: #1a365d;
  --btn-bg-hover: #2b6cb0;
  color-scheme: light;
}

.dark-mode {
  --accent: #63b3ed;
  --bg: #0b1220;
  --surface: #0f172a;
  --card: #1e293b;
  --text-main: #e2e8f0;
  --text-body: #cbd5e1;
  --text-light: #94a3b8;
  --heading: #f1f5f9;
  --border: #2d3b52;
  --code-bg: #1e293b;
  --callout-bg: rgba(99, 179, 237, 0.12);
  --btn-bg: #2b6cb0;
  --btn-bg-hover: #2c5282;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.7;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.simple-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.simple-header > div {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.simple-logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--heading);
  text-decoration: none;
}

.simple-logo span {
  color: var(--accent);
}

.simple-header nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.simple-header nav a {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
  font-size: 1.1rem;
  cursor: pointer;
}

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

.theme-btn .icon-sun,
.dark-mode .theme-btn .icon-moon {
  display: none;
}

.dark-mode .theme-btn .icon-sun {
  display: inline-block;
}

.simple-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 6px;
}

h2 {
  font-size: 1.25rem;
  color: var(--heading);
  margin: 36px 0 8px;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--heading);
}

p,
li {
  color: var(--text-body);
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.summary {
  background: var(--callout-bg);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 24px 0;
}

.summary p {
  margin: 0;
  color: var(--heading);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--btn-bg-hover);
}

/* Contact page */

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.person {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.person-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.person-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.person-role {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.contact-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.contact-list li {
  margin: 0;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  color: var(--text-main);
  text-decoration: none;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.contact-list a:hover {
  background: var(--callout-bg);
  color: var(--accent);
}

.contact-list .icon {
  font-size: 1.2rem;
  color: var(--accent);
}

.contact-list small {
  display: block;
  color: var(--text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.simple-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  padding: 24px 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.simple-footer a {
  margin: 0 10px;
  text-decoration: none;
}

/* 404 */

.center {
  text-align: center;
  padding-top: 80px;
}

.big-code {
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin: 0;
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.8rem;
  }

  .people {
    grid-template-columns: 1fr;
  }

  .big-code {
    font-size: 4.5rem;
  }
}