/* Shared styles for the legal pages. Mirrors the tokens in index.html. */
:root {
  --paper: #FDF9F0;
  --paper-2: #F6EFE0;
  --card: #FFFFFF;
  --ink: #16131A;
  --ink-2: #4F4840;
  --muted: #6F6557;
  --line: #E8DFCD;
  --line-2: #D8CCB4;
  --amber: #F2600C;
  --amber-text: #B54E07;
  --honey-soft: #FFF1D6;
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --font-body: 'Instrument Sans', -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--honey-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: 22px;
}

/* header */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.03em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  outline: 1px solid rgba(22, 19, 26, .1);
  outline-offset: -1px;
}

.back {
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color .16s var(--ease);
}

.back:hover {
  text-decoration-color: var(--amber);
}

/* page opening */
.legal-hero {
  padding: clamp(44px, 7vw, 80px) 0 0;
}

.rule {
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--amber);
  margin-bottom: 24px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.effective {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
  max-width: 760px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta dt {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.meta dd {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.meta a {
  color: var(--amber-text);
  text-decoration: none;
}

.meta a:hover {
  text-decoration: underline;
}

.intro {
  max-width: 68ch;
  margin-top: 26px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* content */
.layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 60px;
  padding: clamp(36px, 5vw, 56px) 0 clamp(56px, 8vw, 96px);
}

.toc {
  position: sticky;
  top: 28px;
  align-self: start;
}

.toc p {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.toc a {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-2);
  padding: 6px 0 6px 12px;
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}

.toc a:hover {
  color: var(--ink);
  border-left-color: var(--amber);
}

article {
  max-width: 70ch;
}

article section {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

article section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 27px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 12px;
}

h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 22px 0 8px;
}

p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

p+p {
  margin-top: 12px;
}

ul+p,
ol+p {
  margin-top: 14px;
}

ul,
ol {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding-left: 22px;
}

li {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

li::marker {
  color: var(--amber);
  font-weight: 600;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

a.inline {
  color: var(--amber-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a.inline:hover {
  color: var(--amber);
}

.note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  background: var(--honey-soft);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

.contact-card {
  display: grid;
  gap: 2px;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  font-size: 15px;
}

.contact-card b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.contact-card span {
  font-size: 14px;
  color: var(--muted);
}

.contact-card a {
  color: var(--amber-text);
  font-weight: 600;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* single-column pages such as account deletion */
.single {
  max-width: 70ch;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.btn-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 6px;
  padding: 13px 22px;
  border-radius: 14px;
  background: var(--amber);
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 24px -12px rgba(242, 96, 12, .75);
  transition: background-color .16s var(--ease), transform .16s var(--ease);
}

.btn-mail:hover {
  background: #E05A09;
}

.btn-mail:active {
  transform: scale(.96);
}

.btn-mail+p {
  margin-top: 16px;
}

/* footer */
.page-foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 30px;
}

.page-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.page-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.page-foot a {
  text-decoration: none;
}

.page-foot a:hover {
  color: var(--amber-text);
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .toc {
    position: static;
    padding-block: 14px;
    border-block: 1px solid var(--line);
  }

  .toc p {
    margin-bottom: 6px;
  }

  .toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
  }

  .toc a {
    display: inline-block;
    padding: 4px 0;
    border-left: 0;
  }

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

@media (max-width: 560px) {
  .brand {
    font-size: 19px;
  }

  .back {
    font-size: 14px;
  }

  .meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  article,
  .single {
    max-width: none;
  }

  .btn-mail {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

@media print {

  .site-head,
  .page-foot,
  .toc {
    display: none;
  }

  body {
    background: #fff;
  }

  .layout {
    display: block;
    padding: 0;
  }
}
