/* App legal/doc pages (the "Paper" layout). Loaded after base.css. */


.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px 64px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 40px;
}

.crumb a {
  transition: color 0.15s;
}

.crumb a:hover {
  color: var(--fg);
}

.crumb .sep {
  color: var(--faint);
}

.crumb .app {
  color: var(--fg);
  font-weight: 500;
}

.mark {
  width: 18px;
}

.crumb .mark:hover {
  transform: rotate(-6deg) scale(1.1);
}

.tabs {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--edge);
  border-radius: 8px;
}

/* JS-driven sliding pill behind the active tab */
.tabs .pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  background: var(--line);
  border-radius: 5px;
  transition: transform 0.26s var(--ease),
    width 0.26s var(--ease);
}

.tabs a {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s,
    transform 0.16s var(--spring);
}

.tabs a:hover {
  color: var(--fg);
}

.tabs a:active {
  transform: scale(0.96);
}

.tabs a.active {
  background: var(--line);
  color: var(--fg);
}

/* with JS, the sliding .pill takes over as the active background */
.tabs.js a.active {
  background: transparent;
}

/* quick crossfade between the Terms and Privacy pages
   (cross-document view transition; unsupported browsers just navigate) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-image-pair(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }

  h1,
  .meta,
  .doc {
    animation: none;
  }
}

h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 28px 0 8px;
  animation: rise 0.45s var(--ease) backwards;
}

.meta {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 44px;
  animation: rise 0.45s var(--ease) 0.06s backwards;
}

.doc {
  animation: rise 0.5s var(--ease) 0.12s backwards;
}

.doc h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 36px 0 10px;
}

.doc section:first-child h2 {
  margin-top: 0;
}

.doc p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 10px;
}

/* a path or a setting name quoted inside a paragraph: held at the body's
   size so a line of prose keeps its rhythm */
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  color: var(--fg);
}

.doc strong {
  font-weight: 500;
  color: var(--fg);
}

.doc a {
  color: var(--fg);
  border-bottom: 1px solid var(--faint);
}

.doc a:hover {
  border-color: var(--fg);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 24px;
  font-size: 12px;
  color: var(--dim);
}

.foot a {
  transition: color 0.15s;
}

.foot a:hover {
  color: var(--fg);
}

a:focus-visible {
  border-radius: 4px;
}
