/* AM Ready — shared styles for static legal pages */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --accent: #f29157;
  --accent-soft: #fef0e8;
  --text: #2d3439;
  --text-secondary: #5c6370;
  --text-muted: #8e9399;
  --border: #ececf0;
  --border-strong: #e0e2e8;
  --radius: 16px;
  --max: 42rem;
  --font-display: "Open Sans", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(
      ellipse 120% 80% at 100% -20%,
      var(--accent-soft),
      transparent 55%
    ),
    radial-gradient(ellipse 90% 60% at -10% 100%, #e8f0fe, transparent 50%),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #d9783d;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  margin-bottom: 2rem;
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.hero__meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.75rem;
  box-shadow: 0 4px 16px rgba(45, 52, 57, 0.06);
}

@media (min-width: 640px) {
  .card {
    padding: 2rem 2.25rem 2.25rem;
  }
}

.toc {
  margin: 0 0 1.75rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.toc strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

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

article h2 {
  margin: 2rem 0 0.75rem;
  padding-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  scroll-margin-top: 4.5rem;
}

article h2:first-of-type {
  margin-top: 0.5rem;
}

article h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

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

article p {
  margin: 0 0 0.9rem;
}

article ul,
article ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

article li {
  margin-bottom: 0.4rem;
}

article li::marker {
  color: var(--accent);
}

.note {
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.site-footer {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

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

/* Contact form */
.contact-form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
  background: var(--surface);
}

.field-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.btn-primary {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.8rem 1.35rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.1s ease;
}

.btn-primary:hover {
  background: #d9783d;
}

.btn-primary:active {
  transform: translateY(1px);
}

.form-alert {
  margin: 0 0 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 600;
}

.form-alert--success {
  color: #1f5c3a;
  background: #e8f8ef;
  border: 1px solid color-mix(in srgb, #5baf7a 35%, transparent);
}

.form-alert--error,
.form-alert--invalid {
  color: #7a2e2e;
  background: #fdeeee;
  border: 1px solid color-mix(in srgb, #d9534f 28%, transparent);
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
