/* App legal pages in the romankoch.online style.
   A standalone copy of the Graphite tokens and of the legal page layout
   (web/src/components/legal-page.tsx), so these pages do not depend on the
   main site's build files and keep working after a redesign. */

@font-face {
  font-family: Geist;
  src: url("Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --background: #efefef;
  --surface: #ffffff;
  --foreground: #232323;
  --foreground-strong: #000000;
  --muted-foreground: #707070;
  --border: #e5e5e5;
  --ring: #a1a1a1;
  --focus-ring: 0 0 0 2px #efefef, 0 0 0 4px #232323;
  --radius-panel: 36px;
  --radius-full: 9999px;
  --font-sans: Geist, ui-sans-serif, system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* Graphite type styles */
.hero {
  font-size: 52px;
  line-height: 55.64px;
  font-weight: 700;
  letter-spacing: -1.56px;
}
.body-sm {
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
}
.muted {
  color: var(--muted-foreground);
}

/* Top: the "RK" mark and the app name, as Graphite nav pills. */
.top {
  display: flex;
  justify-content: center;
  padding: 10px 16px 0;
}
.gr-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 22px;
}
.gr-nav-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--foreground);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.gr-nav-pill {
  padding: 10px 15px;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--foreground);
  font-weight: 600;
}

main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 64px 16px;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.intro h1,
.intro p {
  margin: 0;
}
.intro h1 {
  color: var(--foreground);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.panel {
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: 48px;
}

/* Long text: the Tailwind Typography look used on romankoch.online/privacy/ */
.prose {
  font-size: 16px;
  line-height: 28px;
  overflow-wrap: break-word;
}
.prose > :first-child {
  margin-top: 0;
}
.prose > :last-child {
  margin-bottom: 0;
}
.prose p {
  margin: 20px 0;
}
.prose h2,
.prose h3,
.prose h4 {
  color: var(--foreground-strong);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.prose h2 {
  margin: 40px 0 20px;
  font-size: 20px;
  line-height: 28px;
}
.prose h3 {
  margin: 32px 0 12px;
  font-size: 17px;
  line-height: 26px;
}
.prose h4 {
  margin: 24px 0 8px;
  font-size: 16px;
  line-height: 24px;
}
.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
  margin-top: 0;
}
.prose ul,
.prose ol {
  margin: 20px 0;
  padding-left: 26px;
}
.prose li {
  margin: 8px 0;
  padding-left: 6px;
}
.prose li::marker {
  color: var(--ring);
}
.prose ol > li::marker {
  color: var(--muted-foreground);
}
.prose strong {
  color: var(--foreground-strong);
  font-weight: 600;
}
.prose code {
  color: var(--foreground-strong);
  font-size: 0.875em;
  font-weight: 600;
}
.prose hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.prose a {
  color: var(--foreground-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 16px 40px;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted-foreground);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.5s cubic-bezier(0.7, 0, 0, 1);
}
.site-footer a:hover {
  color: var(--foreground);
}

/* Phones: this is where the apps open these pages. */
@media (max-width: 639px) {
  .hero {
    font-size: 34px;
    line-height: 38px;
    letter-spacing: -1px;
  }
  main {
    gap: 28px;
    padding-top: 40px;
  }
  .panel {
    padding: 24px;
  }
}
