/* Privacy page: a normal scrolling document that reuses style.css (colors, title block, footer) */
html.doc, html.doc body { height: auto; min-height: 100%; overflow: auto; }
html.doc body { background: #000; padding-bottom: 8px; }

/* The title block is fixed over the globe on the main page; here it is a regular header and a link home */
html.doc #title { position: static; pointer-events: auto; --logo: 52px; padding: 16px 20px 0; }
html.doc #title p { display: block; } /* keep the tagline at every width (the globe page hides it on mid screens) */
.brand { display: flex; align-items: center; gap: 12px; width: fit-content; color: var(--text); text-decoration: none; }
.brand:hover h1 { color: var(--accent); }

.policy { width: min(760px, calc(100% - 32px)); margin: 28px auto 0; padding: 28px 32px 32px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; line-height: 1.65; }
.policy h2 { margin: 0; font-size: 30px; line-height: 1.2; }
.policy .updated { margin: 6px 0 20px; color: var(--dim); font-size: 14px; }
.policy h3 { margin: 32px 0 8px; font-size: 19px; }
.policy p, .policy li { color: #c9d3e8; }
.policy p { margin: 0 0 12px; }
.policy ul { margin: 0 0 12px; padding-left: 22px; }
.policy li { margin-bottom: 10px; }
.policy li strong, .policy strong { color: var(--text); }
.policy code { font-size: 13px; padding: 1px 6px; border-radius: 4px; background: #161b22; border: 1px solid var(--line); }
.summary { border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; margin: 0 0 8px; }
.summary p { margin: 0; }

.policy404 { width: min(760px, calc(100% - 32px)); margin: 28px auto 0; padding: 28px 32px 32px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; line-height: 1.65; }
.policy404 h2 { margin: 0; font-size: 30px; line-height: 1.2; }

html.doc footer { position: static; width: min(760px, calc(100% - 32px)); margin: 24px auto 20px; }

/* Methodology page: the tournaments-per-week chart (chart styles come from regional.css) */
.mt-tools { margin: 4px 0 6px; }
.mt-tools label { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; }
.mt-tools select { font: inherit; font-size: 13px; color: var(--text); background: #161b22; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }
.mt-tools select:hover { border-color: var(--accent); }
.mt-note { margin: 6px 0 0; color: var(--dim); font-size: 13px; }

/* Back-to-top button (js/totop.js) */
#totop { position: fixed; right: 20px; bottom: 20px; z-index: 10; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  color: var(--accent); background: #161b22; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, border-color .15s ease, background .15s ease; }
#totop.on { opacity: 1; transform: none; }
#totop[hidden] { display: none; }
#totop:hover, #totop:focus-visible { border-color: var(--accent); background: #0d1117; outline: none; }
@media (prefers-reduced-motion: reduce) { #totop { transition: none; } }