/* Colours mirror UGOKEYDesign.swift so the site and the app read as one product.
   If the app's palette changes, change it here too. */
:root {
  --ink: #0f0f0f;
  --muted: #616366;
  --canvas: #f9f9fa;
  --line: #dee0e3;
  --acid: #dbf500;
  --measure: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- header ---- */

.site-head {
  border-bottom: 2px solid var(--ink);
  background: #fff;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.site-head nav a {
  margin-left: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.site-head nav a:hover { color: var(--ink); }

/* The angled corners are the app's CutCornerShape, rebuilt in CSS. */
/* Not var(--ink): the acid background stays light in both themes, so the label
   has to stay dark in both. Flipping it with the theme made it white on yellow. */
.cta {
  display: inline-block;
  background: var(--acid);
  color: #0f0f0f;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  padding: 18px 34px;
  clip-path: polygon(
    10px 0, calc(100% - 10px) 0, 100% 10px,
    100% calc(100% - 10px), calc(100% - 10px) 100%,
    10px 100%, 0 calc(100% - 10px), 0 10px
  );
}

.cta:hover { opacity: 0.82; }

.cta[aria-disabled="true"] {
  background: var(--line);
  color: var(--muted);
  cursor: default;
}

.cta[aria-disabled="true"]:hover { opacity: 1; }

/* ---- content pages ---- */

.legal h1 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}

.legal {
  background: #fff;
  padding: 56px 0 88px;
}

.legal .updated {
  font-size: 13px;
  color: var(--muted);
  margin: -20px 0 40px;
}

.legal h2 {
  font-size: 19px;
  font-weight: 900;
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 26px 0 8px;
}

.legal p,
.legal li {
  font-size: 15px;
}

.legal ul { padding-left: 1.3em; }

.legal li { margin-bottom: 6px; }

/* Excludes .cta explicitly: this rule outranks it on specificity and would
   otherwise repaint the button's label. */
.legal a:not(.cta) { color: var(--ink); }

/* Pulls the eye to the claims that matter most: nothing leaves the device. */
.note {
  background: var(--canvas);
  border-left: 4px solid var(--acid);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

th, td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th { background: var(--canvas); font-weight: 800; }

/* ---- footer ---- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 13px;
  color: var(--muted);
}

.site-foot a {
  color: var(--muted);
  margin-right: 16px;
}

.site-foot .company { margin-top: 12px; }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f2;
    --muted: #9a9ca0;
    --canvas: #121214;
    --line: #2c2e32;
  }

  .site-head, .legal { background: #1a1a1d; }
}
