/*
 * Decorly's legal pages (/terms, /privacy, /refunds, /delete-account): plain static pages, so they
 * load fast, print cleanly and can be read by Google and the app stores without
 * running the app. Colours and fonts follow src/theme (colors.ts, typography.ts).
 */
:root {
  --black: #25211e;
  --grey: #918e96;
  --light: #f1f3f5;
  --lines: #d9d8dc;
  --gold: #fbcd2b;
  --white: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--black); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--gold); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 80px;
  padding: 0 32px;
  border-bottom: 1px solid var(--lines);
}
.top img { display: block; width: 138px; height: auto; }
.top .cta {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}


main { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; overflow-wrap: break-word; }
h1 {
  margin: 8px 0 6px;
  font-family: 'Onest', system-ui, sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
}
.updated { margin: 0 0 32px; color: var(--grey); font-size: 15px; text-align: center; }
.summary {
  margin: 0 0 40px;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--light);
}
.summary > strong { display: block; margin-bottom: 6px; font-family: 'Onest', system-ui, sans-serif; }
.summary ul { margin: 0; padding-left: 20px; }
h2 {
  margin: 40px 0 10px;
  font-family: 'Onest', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h3 { margin: 24px 0 6px; font-size: 17px; font-weight: 700; }
p, li { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
.caps { text-transform: uppercase; font-size: 15px; letter-spacing: 0.01em; }
table { width: 100%; margin: 8px 0 16px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--lines); text-align: left; vertical-align: top; }
th { font-weight: 700; }

footer {
  padding: 32px;
  border-top: 1px solid var(--lines);
  color: var(--grey);
  font-size: 14px;
  text-align: center;
}
footer a { color: var(--grey); margin: 0 10px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { height: 64px; padding: 0 16px; }
  .top img { width: 118px; }
  .top .cta { height: 38px; padding: 0 16px; font-size: 14px; }
  main { padding: 36px 16px 72px; }
  h1 { font-size: 34px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-bottom: none; padding: 2px 0; }
  tr { padding: 10px 0; border-bottom: 1px solid var(--lines); }
}
/* Opened from the app (legal.js): no way out to the website. */
.in-app .top .cta { display: none; }

@media print {
  .top .cta, footer { display: none; }
}
