/* SolxLab legal pages (built by legal-src/build.mjs) and the team sign-in (/login). Standalone static pages
   in the same style as the app (site-theme.css): the two-tier masthead, serif headings, ruled sections,
   and the same four-column footer. */
:root {
  --bg: #FCFBF8;
  --card: #FFFFFF;
  --surface: #F4F2EC;
  --line: #E4E1DA;
  --line-strong: #CFCAC0;
  --ink: #13213A;
  --text: #26324A;
  --muted: #6B7386;
  --solar: #F2A007;
  --link: #13213A;
  --font: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --display: var(--serif);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font); }
a { color: var(--link); text-decoration-color: var(--solar); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--solar); outline-offset: 2px; }
::selection { background: rgba(242, 160, 7, .28); }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---- masthead: logo and Contact, then the section links between rules ---- */
.top .wrap { padding-top: 22px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 32px; }
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { height: 32px; width: auto; display: block; }
.top-contact { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.top-contact:hover { text-decoration-color: var(--solar); }
.top-links {
  display: flex; gap: 0 28px; margin-top: 18px; overflow-x: auto; scrollbar-width: none;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong);
}
.top-links::-webkit-scrollbar { display: none; }
.top-links a { flex: none; padding: 10px 0 9px; font-size: .93rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.top-links a:hover { color: var(--ink); }

/* ---- legal pages: list of policies on the left, the text on the right ---- */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-block: 40px 72px; }
.side { position: sticky; top: 24px; align-self: start; }
.side h2 {
  margin: 0; padding: 11px 0 10px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong);
  font: 600 .72rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { margin: 0; border-bottom: 1px solid var(--line); }
.side a { display: block; padding: 9px 0; color: var(--text); text-decoration: none; font-size: .95rem; }
.side a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--solar); }
.side a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--solar); padding-left: 12px; }

article { min-width: 0; max-width: 70ch; font-family: var(--serif); font-size: 1.08rem; line-height: 1.7; }
h1 { font: 600 clamp(2rem, 4vw, 2.75rem)/1.1 var(--display); letter-spacing: -.012em; color: var(--ink); margin: 0 0 10px; text-wrap: balance; }
.updated { font-family: var(--font); color: var(--muted); font-size: .9rem; margin: 0 0 28px; }
.summary { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); padding: 6px 0 12px; margin: 0 0 36px; }
.summary h2 { margin: 10px 0 8px; font: 600 .72rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.summary ul { margin: 0; padding-left: 1.2em; }
h2 { font: 600 1.35rem/1.3 var(--display); color: var(--ink); margin: 40px 0 10px; scroll-margin-top: 20px; }
h3 { font: 600 1.1rem/1.35 var(--display); color: var(--ink); margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin: 5px 0; }
li::marker { color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: .93rem; margin: 6px 0 18px; }
th, td { text-align: left; vertical-align: top; padding: 9px 16px 9px 0; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-top: 1px solid var(--line-strong); }
.table-scroll { overflow-x: auto; }
.contact { border-left: 2px solid var(--ink); padding: 4px 0 4px 18px; margin: 12px 0 20px; }
.contact p { margin: 0; }
code { font: .86em ui-monospace, Consolas, monospace; background: var(--surface); padding: 1px 5px; border-radius: 3px; }

/* ---- footer (same markup and look as the app's) ---- */
.site-footer { color: var(--muted); font-size: .92rem; padding-bottom: 28px; }
.footer-cols {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px;
  padding-top: 28px; padding-bottom: 28px; border-top: 2px solid var(--ink);
}
.footer-cols h2 { margin: 0 0 12px; font: 600 .72rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-cols li { margin: 0; }
.footer-cols a { color: var(--text); text-decoration: none; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--solar); }
.footer-about .footer-name { margin: 0 0 8px; font: 600 1.25rem/1.3 var(--serif); color: var(--ink); }
.footer-about p { margin: 0 0 8px; max-width: 42ch; line-height: 1.55; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .84rem; }
.footer-base p { margin: 0; }

@media (max-width: 820px) {
  .top .wrap { padding-top: 16px; }
  .brand img { height: 28px; }
  .top-links { gap: 0 22px; margin-top: 14px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 28px 56px; }
  .side { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
}
@media print {
  .top, .side, .site-footer { display: none; }
  .layout { display: block; padding: 0; }
}
