/* The privacy page: a document of the user guide's family (public/guide/guide.css) — the same palette, type and top
   bar, the text in the middle at 16px, its sections on the right, and a footer of the site's pages. Static, so it
   reads the same with or without JavaScript; light and dark follow the studio's setting. */
:root {
  color-scheme: light;
  --bg: #f8f7f4;
  --surface: #fff;
  --sunken: #edf0e8;
  --hover: #eef0ea;
  --ink: #343a35;
  --heading: #252a26;
  --secondary: #58674f;
  --muted: #707b69;
  --line: #e9e8e2;
  --line-strong: #d6d9cf;
  --accent: #e2603c;
  --accent-ink: #c4522f;
  --green: #527360;
  --green-soft: #e9f0ea;
  --code: #f1f0ea;
  --topbar: 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #18191b;
  --surface: #232427;
  --sunken: #2b2c30;
  --hover: #2c2d31;
  --ink: #dcdde1;
  --heading: #f2f2f4;
  --secondary: #c3c5cc;
  --muted: #9a9ca5;
  --line: #303136;
  --line-strong: #44464d;
  --accent: #f18a65;
  --accent-ink: #f49a78;
  --green: #9cc0a7;
  --green-soft: #213029;
  --code: #2a2b2f;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--topbar) + 20px);
}
body {
  margin: 0;
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
}
a {
  color: var(--accent-ink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 40;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow:
    0 1px 2px #2a2f2a14,
    0 8px 24px #2a2f2a12;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus {
  top: 10px;
}

/* ---- Top bar: the guide's, with the page named beside the mark ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar);
  padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.brand-word {
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.brand-word i {
  font-style: normal;
  color: var(--accent);
}
.brand-section {
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.language-switch {
  display: flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--sunken);
}
.language-switch a {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 30px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.language-switch a:hover {
  color: var(--heading);
  text-decoration: none;
}
.language-switch a[aria-current='page'] {
  background: var(--surface);
  color: var(--heading);
  box-shadow: 0 1px 2px #0000001a;
}
.open-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
:root[data-theme='dark'] .open-app {
  color: #201b16;
}
.open-app:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

/* ---- The page: the text, and its sections at the side ---- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 220px;
  justify-content: center;
  gap: 64px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.doc {
  min-width: 0;
  padding: 48px 0 88px;
}
.doc h1 {
  margin: 0;
  color: var(--heading);
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.doc .doc-updated {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
/* The summary under the title: the size of the text, set apart by a rule in the accent and a heavier weight. */
.doc .lead {
  margin: 26px 0 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--accent);
  color: var(--heading);
  font-weight: 500;
}
/* The policy in five lines, before the detail. */
.short {
  margin: 28px 0 0;
  padding: 18px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.doc .short-title {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.doc .short ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc .short li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 28px;
  font-size: 15px;
  line-height: 1.6;
}
.short li + li {
  border-top: 1px solid var(--line);
}
.short li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.6-5' fill='none' stroke='%23527360' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 16px no-repeat,
    var(--green-soft);
}
:root[data-theme='dark'] .short li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.6-5' fill='none' stroke='%239cc0a7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 16px no-repeat,
    var(--green-soft);
}
.doc h2 {
  margin: 44px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--heading);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.doc p,
.doc ul {
  margin: 0 0 14px;
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin: 6px 0;
}
.doc li::marker {
  color: var(--muted);
}
.doc strong {
  color: var(--heading);
  font-weight: 600;
}
.doc code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--code);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
.outline {
  position: sticky;
  top: var(--topbar);
  align-self: start;
  max-height: calc(100vh - var(--topbar));
  overflow-y: auto;
  padding: 52px 0 40px;
  font-size: 13.5px;
  scrollbar-width: thin;
}
.outline-title {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 13px;
  font-weight: 700;
}
.outline ul {
  margin: 0;
  padding: 0 0 0 12px;
  list-style: none;
  border-left: 1px solid var(--line);
}
.outline a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  line-height: 1.4;
}
.outline a:hover {
  color: var(--accent-ink);
  text-decoration: none;
}

/* ---- Footer: the mark and its line, the site's pages in two groups, then the small print ---- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.5;
}
/* As wide as the page above: the text and its outline, with the side padding. */
.footer-main,
.footer-bottom {
  display: flex;
  max-width: calc(720px + 64px + 220px + 48px);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-main {
  justify-content: space-between;
  gap: 32px 48px;
  padding-top: 36px;
  padding-bottom: 32px;
}
.footer-brand p {
  margin: 12px 0 0;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 56px;
}
.footer-title {
  margin: 2px 0 10px;
  color: var(--heading);
  font-size: 13px;
  font-weight: 700;
}
.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li + li {
  margin-top: 6px;
}
.footer-links a {
  color: var(--secondary);
}
.footer-links a:hover {
  color: var(--accent-ink);
  text-decoration: none;
}
.footer-links a[aria-current='page'] {
  color: var(--heading);
  font-weight: 600;
}
.footer-bottom {
  align-items: center;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 18px;
  /* The line above it runs as wide as the text, not into the side margins. */
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 48px) 1px no-repeat;
  color: var(--muted);
  font-size: 13px;
}
.footer-bottom a {
  color: var(--muted);
}
.footer-bottom a:hover {
  color: var(--accent-ink);
}
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.footer-top .icon {
  width: 14px;
  height: 14px;
}
/* ---- Narrower screens ---- */
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: minmax(0, 720px);
  }
  .outline {
    display: none;
  }
  .footer-main,
  .footer-bottom {
    max-width: calc(720px + 48px);
  }
}
@media (max-width: 640px) {
  .topbar {
    padding: 0 16px;
  }
  .topbar .brand-word,
  .brand-section,
  .open-app .icon {
    display: none;
  }
  .open-app {
    padding: 0 12px;
  }
  .layout,
  .footer-main,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }
  .footer-bottom {
    background-size: calc(100% - 32px) 1px;
  }
  .doc {
    padding: 32px 0 64px;
  }
  .doc h1 {
    font-size: 32px;
  }
  .doc h2 {
    margin-top: 36px;
    padding-top: 22px;
    font-size: 20px;
  }
  .short {
    padding: 14px 16px;
  }
  .footer-main {
    flex-direction: column;
  }
  .footer-links {
    gap: 40px;
  }
}
