/* Shared by every page of morninghug.app. The font is served from here, not from Google, so a visit
   sends nothing to a third party. */
/* Each weight comes in three files. The browser fetches the Polish and Romanian letters (latin-ext)
   or the Cyrillic ones only on a page that uses them. Greek and Hindi use the phone's own font,
   since Montserrat has neither. The extra files were cut from the app's Montserrat with pyftsubset. */
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/montserrat-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/montserrat-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-017F, U+0218-021B; }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/montserrat-500-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/montserrat-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/montserrat-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-017F, U+0218-021B; }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/montserrat-600-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/montserrat-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/montserrat-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-017F, U+0218-021B; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/montserrat-700-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/montserrat-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/montserrat-800-latin-ext.woff2") format("woff2"); unicode-range: U+0100-017F, U+0218-021B; }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/montserrat-800-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --primary: #ee6c5b;
  --primary-top: #f78a7b;
  --primary-ink: #c2493a;
  --primary-soft: #fde4e0;
  --ink: #24262f;
  --muted: #5c5f6b;
  --card: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.85);
  --line: rgba(36, 38, 47, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(160deg, #fff3ef 0%, #fde4ea 38%, #eceeff 72%, #e6f6ee 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Montserrat has Bulgarian letter shapes (т like m, д like g) that it uses for lang="bg". The app shows
   the common shapes, so the site does too. */
:lang(bg) { font-feature-settings: "locl" 0; }

/* ---------- text pages: privacy, terms, support ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.top nav { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.top nav a { color: var(--muted); font-weight: 600; font-size: 16px; text-decoration: none; }
.top nav a[aria-current="page"] { color: var(--primary-ink); }

.doc {
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 18px 50px rgba(36, 38, 47, 0.06);
  font-size: 18px;
  line-height: 1.65;
}
.doc h1 { font-size: clamp(30px, 6vw, 40px); font-weight: 800; line-height: 1.15; margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.doc h2 { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 32px 0 8px; }
.doc h3 { font-size: 19px; font-weight: 700; margin: 20px 0 4px; }
.doc p, .doc ul, .doc ol { margin: 8px 0; }
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--primary-ink); font-weight: 600; }
.doc strong { font-weight: 700; }
.doc .note {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--primary-soft);
  font-weight: 600;
}
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; }
.table-wrap { overflow-x: auto; }

.foot { margin-top: 32px; text-align: center; font-size: 16px; color: var(--muted); }
.foot a { color: var(--muted); }

@media (min-width: 640px) {
  .doc { padding: 44px 48px; }
}

/* On a phone every table row becomes a small block: the first cell in bold, the others under it. */
@media (max-width: 560px) {
  .doc { padding: 26px 18px; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc tr:first-child { display: none; }
  .doc tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:first-child { font-weight: 700; }
}

/* ---------- language menu, on every page ---------- */
.langs { position: relative; flex: none; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px 7px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.78); border: 1px solid var(--glass-border); box-shadow: 0 4px 14px rgba(36, 38, 47, 0.06); font-weight: 700; font-size: 14px; color: var(--ink); user-select: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { background: #fff; }
.langs .chev { transition: transform 0.2s ease; color: var(--muted); }
.langs[open] .chev { transform: rotate(180deg); }
.flag { width: 22px; height: 15px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(36, 38, 47, 0.12); }
.langs-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; width: 310px; max-width: calc(100vw - 32px); padding: 8px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(36, 38, 47, 0.18); }
.langs-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.langs-menu a:hover { background: #f6f3f2; }
.langs-menu a[aria-current] { color: var(--primary-ink); font-weight: 800; background: var(--primary-soft); }
.top .langs { margin-left: auto; }
