/* Legal pages (privacy, terms, delete account, 404), Ridgeline Trail brand.

   Standalone: Vite copies public/ untouched, so this file cannot import
   src/styles. The custom properties below are a short copy of the light
   token values in src/styles/tokens.css (docs/design/directions/a/tokens.css);
   when one changes there, change it here too. The app's Figtree font is a
   hashed asset, so these pages use the system sans serif. */
:root {
  color-scheme: light;
  --color-bg: #ffffff;
  --color-surface-sunken: #f1f4f4;
  --color-text: #13232a;
  --color-text-muted: #46555c;
  --color-text-subtle: #5f6d73;
  --color-text-on-accent: #ffffff;
  --color-border: #e3e8ea;
  --color-accent: #1b6045;
  --color-accent-hover: #154d37;
  --color-focus: #13232a;
  --radius-md: 12px;
  --radius-pill: 999px;
  --font-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html,
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 16px/26px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Header: the mark and the wordmark on a white bar with one hairline. */
.top {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: calc(64px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 48px 0;
  background: var(--color-bg);
  box-shadow: inset 0 -1px 0 var(--color-border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.2px;
  font-weight: 600;
  text-decoration: none;
}

.mark {
  width: 32px;
  height: 22px;
}

.mark .mountains {
  fill: #e7f2eb;
  stroke: #123b2d;
  stroke-width: 6;
  stroke-linejoin: round;
}

.mark .snow {
  fill: var(--color-bg);
  stroke: #123b2d;
  stroke-width: 3.2;
  stroke-linejoin: round;
}

.mark .trail {
  fill: none;
  stroke: #2d7a63;
  stroke-width: 5;
  stroke-linecap: round;
}

main {
  max-width: 768px;
  margin: 0 auto;
  padding: 40px 48px 80px;
}

h1 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -0.6px;
  font-weight: 600;
}

h2 {
  margin: 40px 0 8px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.1px;
  font-weight: 600;
}

p,
li {
  margin: 0 0 12px;
  color: var(--color-text);
}

strong {
  font-weight: 600;
}

.updated {
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-subtle);
}

.lede {
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-muted);
}

a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

ul,
ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

li {
  margin: 0;
}

li + li {
  margin-top: 8px;
}

table {
  width: 100%;
  margin: 12px 0 16px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}

th,
td {
  padding: 12px 12px 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

th {
  color: var(--color-text-muted);
  font-weight: 600;
}

.notice {
  margin: 24px 0 32px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-sunken);
}

.notice p {
  margin: 4px 0 0;
  color: var(--color-text-muted);
}

.contact-form {
  display: grid;
  gap: 20px;
  max-width: 620px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label > span {
  font-weight: 600;
}

.contact-form label small {
  color: var(--color-text-subtle);
  font-weight: 400;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #aab5b9;
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-focus);
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.contact-honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 148px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  font: 600 16px/24px var(--font-sans);
  cursor: pointer;
}

.submit:hover {
  background: var(--color-accent-hover);
}

.submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 26px;
  margin: -8px 0 0;
  color: var(--color-text-muted);
}

.form-status.good {
  color: var(--color-accent);
  font-weight: 600;
}

.form-status.bad {
  color: #a33a2b;
  font-weight: 600;
}

.contact-direct {
  margin-top: 28px;
}

.fine {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-muted);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  line-height: 20px;
}

/* The one action on the page: back to the map (primary pill). */
.back {
  display: inline-flex;
  align-items: center;
  height: 48px;
  margin-top: 40px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  font-weight: 600;
  text-decoration: none;
}

.back:hover {
  background: var(--color-accent-hover);
}

.back:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-bg);
}

/* 404: one centred message under the header. */
.center main {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 64px);
  padding: 24px;
  text-align: center;
}

.center h1 {
  margin-top: 16px;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -0.4px;
}

.center p {
  color: var(--color-text-muted);
}

.center .back {
  margin-top: 16px;
}

@media (max-width: 760px) {
  .top {
    padding-left: 16px;
    padding-right: 16px;
  }

  main {
    padding: 24px 16px calc(64px + env(safe-area-inset-bottom, 0px));
  }

  h1 {
    font-size: 32px;
    line-height: 38px;
    letter-spacing: -0.4px;
  }

  table {
    font-size: 14px;
  }
}
