/* ============================================================
   Orderly — shared styles for secondary pages
   (privacy, terms, cookies, contact)
   Design system mirrors orderly.ro (index.html) exactly:
   Schibsted Grotesk + Hanken Grotesk, burnt-orange accent,
   floating-pill nav with the real logo.png, white grid footer.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --radius: 10px;
  --r: calc(var(--radius) * 1.8);

  --ink:     #0b1215;
  --text:    #1c2130;
  --muted:   #596070;
  --subtle:  #8c95a6;
  --border:  #e6eaf0;
  --surface: #f4f6f9;
  --white:   #ffffff;

  /* accent lock — burnt orange, identical to orderly.ro */
  --orange:   #e8621a;
  --orange-h: #c94e0f;
  --orange-l: #fef3e8;

  --sh-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-md: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --sh-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { font-family: 'Schibsted Grotesk', 'Hanken Grotesk', system-ui, sans-serif; letter-spacing: -.02em; }
a { color: inherit; }

/* scroll progress */
#progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--orange); width: 0%; z-index: 9999; transition: width .1s;
}

/* ══════════ NAV — floating pill, same as orderly.ro ══════════ */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--surface);
  padding: 14px 40px;
}
nav.pill {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white);
  border-radius: 100px;
  padding: 10px 10px 10px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07), 0 0 0 1px var(--border);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; border-radius: 100px; transition: all .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a.current { color: var(--ink); background: var(--surface); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-login {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 9px 18px; border-radius: 100px; transition: all .15s;
}
.nav-login:hover { color: var(--ink); background: var(--surface); }
.nav-cta {
  font-size: 14px; font-weight: 700; color: var(--white);
  background: var(--ink); padding: 10px 22px; border-radius: 100px;
  text-decoration: none; transition: all .15s; white-space: nowrap;
}
.nav-cta:hover { background: #1e2535; }

/* spacer under fixed nav */
.nav-spacer { height: 78px; }

/* ══════════ HERO (legal pages) ══════════ */
.hero {
  max-width: 1100px; margin: 0 auto; padding: 40px 40px 0;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--orange); opacity: .5; }
.hero h1 {
  font-size: clamp(34px, 5vw, 54px); font-weight: 800; color: var(--ink);
  letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 18px;
}
.hero h1 span { color: var(--orange); }
.hero-sub { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; max-width: 620px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 32px; padding: 20px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-item label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.hero-meta-item span, .hero-meta-item a { font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; }
.hero-meta-item a { color: var(--orange); }

/* ══════════ PAGE LAYOUT (legal) ══════════ */
.page-wrap {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 40px 80px;
  display: grid; grid-template-columns: 210px 1fr 240px; gap: 40px; align-items: start;
}
.toc-sidebar { position: sticky; top: 96px; }
.toc-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 12px; padding: 0 12px; }
.toc-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px;
  border-radius: 100px; border: none; background: none; text-align: left; cursor: pointer;
  transition: all .15s; color: var(--subtle); font-size: 13px; font-weight: 500;
  font-family: inherit;
}
.toc-btn:hover { color: var(--text); background: var(--white); }
.toc-btn.active { color: var(--ink); background: var(--white); box-shadow: var(--sh-sm); }
.toc-btn.active .toc-num { color: var(--orange); }
.toc-num { font-size: 11px; font-weight: 700; flex-shrink: 0; color: var(--subtle); }
.toc-btn span:nth-child(2) { flex: 1; }
.toc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); flex-shrink: 0; display: none; }
.toc-btn.active .toc-dot { display: block; }

/* content column — white card on surface */
.content {
  min-width: 0; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--sh-sm);
  padding: 40px 44px;
}
.legal-section { border-bottom: 1px solid var(--border); padding-bottom: 34px; margin-bottom: 34px; scroll-margin-top: 100px; }
.legal-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 8px; }
.section-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.section-num { font-size: 12px; color: var(--orange); font-weight: 800; flex-shrink: 0; }
.section-title { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.3px; }
.section-body { display: flex; flex-direction: column; gap: 12px; padding-left: 32px; }
.section-body p { font-size: 15px; color: var(--muted); line-height: 1.75; }
.section-body p strong { color: var(--text); font-weight: 700; margin-right: 4px; }
.section-body a { color: var(--orange); text-decoration: none; font-weight: 600; }
.section-body a:hover { text-decoration: underline; }
.end-note {
  margin-top: 28px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; color: var(--subtle); line-height: 1.7;
}

/* right sidebar */
.right-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; box-shadow: var(--sh-sm); }
.sidebar-card-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 14px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { font-size: 11px; font-weight: 600; padding: 6px 11px; border-radius: 100px; background: var(--surface); color: var(--text); }
.sidebar-cta { display: block; text-align: center; padding: 11px; border-radius: 100px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; transition: background .15s; }
.sidebar-cta:hover { background: var(--orange-h); }
.sidebar-email { font-size: 13px; font-weight: 700; color: var(--orange); text-decoration: none; display: block; margin-bottom: 4px; }
.sidebar-email:hover { text-decoration: underline; }
.sidebar-sub { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.sidebar-addr { font-size: 12px; color: var(--subtle); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.trust-item { background: var(--orange-l); color: var(--orange-h); font-size: 10px; font-weight: 700; padding: 11px 8px; border-radius: var(--radius); text-align: center; line-height: 1.3; }

/* ══════════ FOOTER — white grid, same as orderly.ro ══════════ */
footer.site {
  background: var(--white); border-top: 1px solid var(--border);
  padding: 56px 40px 40px; margin-top: 0;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid var(--border); margin-bottom: 28px;
}
.footer-brand-col img { height: 42px; width: auto; display: block; margin-bottom: 14px; }
.footer-tagline { font-size: 13.5px; color: var(--muted); line-height: 1.65; max-width: 240px; }
.footer-col-wrap { display: flex; flex-direction: column; gap: 12px; }
.footer-col-t { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--subtle); margin-bottom: 4px; }
.footer-col-wrap a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .15s; }
.footer-col-wrap a:hover { color: var(--ink); }
.footer-bottom { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 13px; color: var(--subtle); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 13px; color: var(--subtle); text-decoration: none; transition: color .15s; }
.footer-legal a:hover { color: var(--ink); }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1024px) {
  .page-wrap { grid-template-columns: 1fr; }
  .toc-sidebar, .right-sidebar { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  .nav-wrap { padding: 12px 16px; }
  .hero { padding: 32px 24px 0; }
  .page-wrap { padding: 32px 24px 64px; }
  .content { padding: 28px 22px; }
  footer.site { padding: 44px 24px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; }
}
