/* Text pages: privacy policy and support. Colours match Theme in Shared/PrivacyStyle.swift,
   like m.css. */

:root {
  --primary: #d9381e;
  --link: #ff6a4d;
  --grouped-fill: #1c1c1e;
  --separator: rgba(84, 84, 88, 0.6);
  --secondary-text: rgba(235, 235, 245, 0.6);
  --card-radius: 24px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #000;
  color: #fff;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

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

/* Header: app name on the left, the other page and the other language on the right. */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--separator);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 22%;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 15px;
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a[aria-current="page"] {
  color: #fff;
}

/* Under the header on the privacy policy: every language it's published in. */
.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-top: 14px;
  font-size: 15px;
}

.languages a {
  text-decoration: none;
}

.languages a[aria-current="page"] {
  color: #fff;
}

/* Japanese: Apple's and Windows' Japanese system fonts, ahead of fonts without kana. */
html:lang(ja) body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

/* So "プライバシーポリシー" fits on one line on a phone. */
html:lang(ja) h1 {
  font-size: 30px;
}

h1 {
  margin: 36px 0 4px;
  font-size: 34px;
  line-height: 1.15;
  /* Long single words such as "Datenschutzerklärung" don't fit a phone screen. */
  overflow-wrap: break-word;
  hyphens: auto;
}

h2 {
  margin: 40px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

h3 {
  margin: 28px 0 4px;
  font-size: 17px;
}

p,
ul {
  margin: 0 0 12px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

.updated,
.secondary {
  color: var(--secondary-text);
}

.updated {
  margin-bottom: 24px;
  font-size: 15px;
}

.card {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: var(--card-radius);
  background: var(--grouped-fill);
}

.card p:last-child {
  margin-bottom: 0;
}

.summary {
  font-size: 19px;
}

.contact a {
  font-weight: 600;
}

code {
  font: 15px ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--separator);
  font-size: 13px;
  color: var(--secondary-text);
}
