/* trylo legal pages - the marketing site's brand, applied to prose.

   Shared by privacy.html and terms.html, which are served over HTTP from the
   same directory, so a relative <link> resolves. The palette, the type ramp and
   the card language are lifted from trylo-site/neo/style.css so a visitor who
   taps "Privacy" in the footer does not land on a different-looking product.

   Light only, on purpose: the marketing site has no dark mode, and a dark legal
   page reached from a light footer reads as somebody else's site. The greys are
   the site's own AA-checked pair - --body is 8.8:1 and --muted 5.3:1 against
   --field, the lightest ground either sits on. Darken, never lighten. */

:root {
  --ink: #181b25;
  --body: #414755;
  --muted: #61687a;
  --paper: #ffffff;
  --field: #f9f8fb;
  --lavender: #c6bdfa;
  --lavender-deep: #8c71f6;
  --hero-top: #ddd7fe;
  --hairline: #e5e7eb;
  --radius-card: 24px;
  --font-display: "Onest", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--field);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lavender-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* The same gradient the home page opens on, so the top of the page is
   recognisably trylo before any words are read. */
.legal-top {
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--field) 100%);
  padding: 0 0 40px;
}

.legal-bar {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img.brand-mark { width: 30px; height: 30px; }
.brand img.brand-word { height: 20px; width: auto; }

.legal-back {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 9px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.legal-back:hover { border-color: var(--lavender); color: var(--ink); }

.legal-head { max-width: 760px; margin: 0 auto; padding: 28px 24px 0; }

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.updated {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; }

.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 40px 40px 44px;
  box-shadow: 0 18px 44px rgba(24, 27, 37, 0.05);
  margin-top: -24px;
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  padding-bottom: 26px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--hairline);
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 34px 0 10px;
}

p, li { margin: 0 0 12px; }
ul { list-style: none; margin: 0 0 12px; }

/* A lavender rule per item instead of a bullet: the same accent the site uses
   for its list marks, and it survives a wrapped line without a hanging indent. */
li {
  position: relative;
  padding-left: 18px;
}
li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: var(--lavender);
}

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

.legal-foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 56px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.legal-foot a { color: var(--muted); text-decoration: none; }
.legal-foot a:hover { color: var(--ink); }
.legal-foot .sep { color: var(--hairline); }

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  h2 { font-size: 20px; }
  .card { padding: 26px 22px 30px; border-radius: 18px; }
  .lede { font-size: 17px; }
  .legal-bar { padding: 16px 20px; }
  .legal-head { padding: 22px 20px 0; }
  .wrap { padding: 0 20px 64px; }
  .legal-foot { padding: 0 20px 44px; }
}
