/* Shared styles for secondary content pages. */
:root {
  --bg: #1A1A14;
  --bg-deep: #13130E;
  --cream: #F2EDE4;
  --cream-deep: #E8E1D2;
  --orange: #E8620A;
  --orange-soft: #FF9F5A;
  --ink: #F0EBE0;
  --ink-dim: rgba(240, 235, 224, 0.90);
  --line: #3A3A2F;
}

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

html {
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  z-index: 10;
  background: var(--orange);
  color: var(--bg);
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--orange-soft);
  outline-offset: 2px;
}

header,
footer {
  background: var(--bg-deep);
  border-color: var(--line);
}

header {
  padding: 24px 40px;
  border-bottom: 1px solid var(--line);
}

header h1 {
  margin-bottom: 8px;
  font-size: 28px;
}

header p {
  color: var(--ink-dim);
  font-size: 14px;
}

nav {
  padding: 16px 40px;
  border-bottom: 1px solid var(--line);
}

nav a,
p a,
footer a,
.contact-item a {
  color: var(--orange-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 24px;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
}

section {
  margin-bottom: 60px;
}

h2 {
  margin-bottom: 24px;
  color: var(--orange);
  font-size: 32px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 16px;
  color: var(--cream);
  font-size: 20px;
  line-height: 1.25;
}

p {
  margin-bottom: 16px;
  color: var(--ink-dim);
  line-height: 1.8;
}

ul,
ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

li {
  margin-bottom: 8px;
}

footer {
  margin-top: 60px;
  padding: 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  text-align: center;
  font-size: 12px;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.last-updated {
  margin-bottom: 40px;
  color: var(--ink-dim);
  font-size: 14px;
}

.privacy-page h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 24px;
}

.privacy-page h2:first-child {
  margin-top: 0;
}

.privacy-page h3 {
  font-size: 18px;
}

.page-lede {
  margin-bottom: 40px;
}

.contact-info {
  display: grid;
  gap: 24px;
  margin-bottom: 60px;
}

.contact-item,
.contact-page-form {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact-item {
  padding: 24px;
}

.contact-item h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.contact-page-form {
  padding: 32px;
}

.contact-page-form > div {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 14px 12px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(232, 98, 10, 0.12);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  margin-bottom: 8px;
  font-size: 12px;
}

.form-message {
  display: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
}

button {
  width: 100%;
  min-height: 48px;
  padding: 14px;
  background: var(--orange);
  color: var(--bg);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease;
}

button:hover {
  background: var(--orange-soft);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

@media (max-width: 768px) {
  header,
  nav,
  main,
  footer {
    padding: 20px;
  }

  h2 {
    font-size: 24px;
  }

  .privacy-page h2 {
    font-size: 20px;
  }

  nav a {
    display: flex;
    width: 100%;
    margin-bottom: 4px;
  }

  .contact-page-form {
    padding: 20px;
  }
}
