:root {
  color-scheme: light;
  --white: #fff;
  --ink: #251812;
  --orange: #a83b10;
  --orange-hover: #842c0a;
  --peach: #fff0e6;
  --border: #e7cdbf;
  --mark: #d15823;
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
  font-size: 100%;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  font-size: 1.1875rem;
  line-height: 1.6;
}

.shell {
  width: min(calc(100% - 2.5rem), 52rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1.2rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.brand-mark {
  display: inline-grid;
  width: 2.125rem;
  height: 2.125rem;
  flex: none;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--mark);
}

.brand-mark::after {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid var(--white);
  border-radius: 0.125rem;
}

main {
  padding-block: clamp(2.5rem, 8vw, 6rem);
}

.panel {
  padding: clamp(1.5rem, 6vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--peach);
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

.action {
  display: flex;
  width: min(100%, 21rem);
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 0.75rem 1.125rem;
  border-radius: 0.625rem;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.action:hover {
  background: var(--orange-hover);
  text-decoration: underline;
}

.action span[aria-hidden] {
  font-size: 1.5rem;
  line-height: 1;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.terms-page {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.back-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.125rem;
  color: var(--orange);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.terms-intro {
  border-left: 0.375rem solid var(--mark);
}

.terms-intro p {
  margin: 1rem 0 0;
}

.terms-content {
  max-width: 70ch;
  margin-top: 2rem;
}

.terms-content section + section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.terms-content h2,
.terms-content h3 {
  line-height: 1.25;
}

.terms-content h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
}

.terms-content h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

.terms-content p:last-child {
  margin-bottom: 0;
}

.terms-content a[href^="tel:"] {
  color: var(--orange);
  text-underline-offset: 0.2em;
  white-space: nowrap;
}

.terms-callout {
  padding: 0.875rem 1.125rem;
  border-left: 0.375rem solid var(--mark);
  border-radius: 0.625rem;
  background: var(--peach);
}
