/* Fibra Net — legal.css
   Shared styles for legal / informational pages
   (оплата і доставка, повернення, контакти, публічна оферта).
   Design tokens mirror /shop/style.css and /style.css for visual consistency. */

:root {
  --primary:      #1A56DB;
  --primary-dark: #1342B0;
  --accent:       #F59E0B;
  --dark:         #111827;
  --text:         #111827;
  --text-muted:   #6B7280;
  --bg:           #F9FAFB;
  --bg-white:     #ffffff;
  --border:       #E5E7EB;
  --success:      #10B981;
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    16px;
  --max-w:        760px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ── HEADER (matches shop header) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo-btn { display: flex; align-items: center; }
.logo-btn img { height: 36px; width: auto; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-phone { color: var(--text); font-weight: 600; font-size: 15px; }
.header-phone:hover { color: var(--primary); text-decoration: none; }
.header-back { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.header-back:hover { color: var(--primary); text-decoration: none; }

/* ── DOCUMENT ── */
main { padding: 44px 0 64px; }

.doc-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
h1 {
  font-size: clamp(24px, 4.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.18;
  margin-bottom: 8px;
}
.doc-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.doc-lead { font-size: 17px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.55; }

h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin: 32px 0 12px;
  scroll-margin-top: 80px;
}
h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 7px; color: var(--text); line-height: 1.6; }
ul li::marker { color: var(--primary); }

strong { font-weight: 700; }

/* Page navigation (links between legal pages) */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
}
.page-nav a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.page-nav a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-nav a.is-current { background: #EEF2FF; border-color: var(--primary); color: var(--primary); }

/* Callout boxes */
.callout {
  background: #EEF2FF;
  border: 1px solid #C7D7FE;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 15px;
  margin: 18px 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.callout--warn {
  background: #FEF3C7;
  border-color: #FCD34D;
  color: #78350F;
}
.callout--ok {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}

/* Requisites / details table */
.req-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 14px 0 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}
.req-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.req-table td {
  padding: 12px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.req-table tr:last-child td { border-bottom: none; }
.req-table td:first-child {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  width: 38%;
}
.req-table td:first-child { word-break: break-word; }

/* Contact list */
.contact-list { list-style: none; padding: 0; margin: 14px 0 22px; }
.contact-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .c-label { color: var(--text-muted); min-width: 92px; font-size: 14px; }
.contact-list .c-value { font-weight: 600; }

.note { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ── FOOTER (matches shop footer) ── */
.shop-footer {
  background: var(--dark);
  color: #9CA3AF;
  padding: 40px 0 32px;
  font-size: 14px;
}
.shop-footer .container {
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.footer-col a, .footer-col span { color: #9CA3AF; line-height: 1.8; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-logo { height: 28px; width: auto; filter: brightness(0) invert(1); margin-bottom: 4px; }
.footer-copy {
  width: 100%;
  border-top: 1px solid #374151;
  padding-top: 20px;
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}
.footer-copy a { color: #9CA3AF; }
.footer-copy a:hover { color: #fff; text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  main { padding: 28px 0 48px; }
  .header-phone { display: none; }
  .req-table td:first-child { width: 42%; }
  .footer-col { min-width: calc(50% - 16px); }
}
@media (max-width: 400px) {
  .footer-col { min-width: 100%; }
}
