/* Shared styles for the legal pages: privacy policy, cookie policy, legal notice */
:root {
  --white: #FFFFFF;
  --ink: #0E0E0E;
  --grey: #5B5B5B;
  --faint: #9B9B9B;
  --hairline: rgba(14,14,14,0.12);
  --orange: #EC7E35;
  --cream: #FFF6EB;
  --peach: #FFEAD6;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif; background: var(--white); color: var(--grey);
  line-height: 1.75; -webkit-font-smoothing: antialiased;
}
a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
.nav-in { max-width: 1240px; margin: 0 auto; padding: 0 32px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -0.03em; text-decoration: none; }
.logo i { font-style: normal; color: var(--orange); }
.back { font-size: 13px; font-weight: 500; color: var(--grey); text-decoration: none; padding: 8px 12px; border-radius: 6px; }
.back:hover { color: var(--ink); background: #F6F6F4; }

/* Content */
main { max-width: 820px; margin: 0 auto; padding: 120px 32px 90px; }
h1 { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.035em; line-height: 1.05; color: var(--ink); text-transform: lowercase; }
.updated { font-size: 14px; color: var(--faint); margin: 12px 0 36px; }
h2 { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  color: var(--ink); margin: 44px 0 14px; scroll-margin-top: 90px; }
h3 { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); margin: 26px 0 8px; }
p, li { font-size: 15.5px; }
p { margin-bottom: 14px; }
ul { margin: 0 0 16px 22px; }
li { margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 600; }

.summary { background: var(--cream); border-left: 4px solid var(--orange); padding: 22px 26px; margin: 0 0 30px; border-radius: 4px; }
.summary h2 { margin-top: 0; font-size: 18px; }
.summary ul { margin-bottom: 0; }

.toc { font-size: 14px; margin-bottom: 10px; }
.toc ol { margin: 0 0 0 20px; columns: 2; column-gap: 32px; }
.toc li { font-size: 14px; margin-bottom: 4px; break-inside: avoid; }
.toc a { color: var(--grey); text-decoration: none; }
.toc a:hover { color: var(--orange); }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 18px; font-size: 15.5px; }
dl.facts dt { font-weight: 600; color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 6px 0 20px; border: 1px solid var(--hairline); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
th { background: var(--peach); color: var(--ink); font-weight: 600; font-size: 13px; }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; color: var(--ink); }

.btn { display: inline-block; font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 14px; background: var(--ink);
  color: var(--white); border: 0; padding: 11px 20px; border-radius: 6px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--orange); color: var(--white); }

/* Placeholder Fred must fill before going live */
.todo { background: #FFE58A; color: var(--ink); padding: 0 5px; border-radius: 3px; font-weight: 600; }

/* Footer */
footer { background: var(--ink); color: rgba(255,255,255,0.55); padding: 44px 0 36px; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
footer .logo { color: var(--white); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6); text-decoration: none; }
.foot-links a:hover { color: var(--orange); }
.foot-copy { max-width: 1240px; margin: 22px auto 0; padding: 0 32px; font-size: 12px; color: rgba(255,255,255,0.4); }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 720px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  padding: 22px 24px; text-align: center; }
.cookie-banner h4 { font-family: 'Inter Tight', sans-serif; font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.cookie-banner p { font-size: 13px; color: var(--grey); margin: 0 auto 14px; max-width: 620px; line-height: 1.6; }
.cookie-btns { display: flex; gap: 10px; justify-content: center; }
.cookie-btns button { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 14px; min-width: 120px; padding: 10px 18px;
  border-radius: 6px; cursor: pointer; background: var(--ink); border: 1px solid var(--ink); color: var(--white); }
.cookie-btns button:hover { background: var(--orange); border-color: var(--orange); }
.cookie-banner.hidden { display: none; }

@media (max-width: 640px) {
  .nav-in, main, .foot-in, .foot-copy { padding-left: 16px; padding-right: 16px; }
  main { padding-top: 100px; }
  .toc ol { columns: 1; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 8px; }
}
