/* ==========================================================================
   R3COMM — Terms & Conditions page styles                      Version 1.0
   Colors match the landing page. Edit a color once in :root to change it.
   ========================================================================== */

:root {
  --r3-blue:        #0076A3;
  --r3-blue-dark:   #005C80;
  --r3-navy:        #06293A;
  --r3-sky:         #4FB8DC;
  --r3-ink:         #12242F;
  --r3-slate:       #52646F;
  --r3-mist:        #F2F8FB;
  --r3-line:        #DCE7ED;
  --r3-white:       #FFFFFF;
  --r3-on-navy:     #E8F1F6;
  --r3-on-navy-dim: #9EBCCB;
  --r3-footer-line: #1E4558;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.7;
  color: var(--r3-ink); background: var(--r3-mist);
}
h1, h2 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
a  { color: var(--r3-blue); }
a:focus-visible { outline: 3px solid var(--r3-sky); outline-offset: 2px; }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* --- Header --- */
.site-header { background: var(--r3-white); border-bottom: 1px solid var(--r3-line); padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; max-width: 1100px; }
.logo img { display: block; height: 30px; width: auto; }
.lang { display: flex; gap: .5rem; }
.lang a {
  font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--r3-blue-dark);
  border: 1px solid var(--r3-line); border-radius: 999px; padding: .35rem .9rem;
}
.lang a:hover { border-color: var(--r3-blue); }

/* --- Title band --- */
.title-band { background: var(--r3-navy); color: var(--r3-on-navy); padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0; }
.title-band h1 { color: var(--r3-white); }
.title-band p { color: var(--r3-on-navy-dim); margin: 0; }
.rule { display: flex; flex-direction: column; gap: 3px; width: 34px; margin-bottom: 1.25rem; }
.rule span { height: 3px; background: var(--r3-sky); border-radius: 1px; }
.rule span:nth-child(1) { width: 100%; }
.rule span:nth-child(2) { width: 64%; }
.rule span:nth-child(3) { width: 84%; }

/* --- Terms cards --- */
.terms { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.terms-card {
  background: var(--r3-white); border: 1px solid var(--r3-line); border-top: 3px solid var(--r3-blue);
  border-radius: 12px; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); margin-bottom: 1.5rem;
  scroll-margin-top: 1rem;
}
.terms-card ol { margin: 0; padding-left: 1.4rem; }
.terms-card li { margin-bottom: .9rem; padding-left: .35rem; }
.terms-card li::marker { color: var(--r3-blue); font-weight: 600; }
.see-also { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--r3-line); font-size: .95rem; color: var(--r3-slate); }
.updated { font-size: .85rem; color: var(--r3-slate); margin: 0; }

/* --- Footer (same as landing page) --- */
.site-footer { background: var(--r3-navy); padding: 2.5rem 0 1.5rem; }
.site-footer .wrap { max-width: 1100px; }
.site-footer img { height: 24px; width: auto; display: block; }
.site-footer p { color: var(--r3-on-navy-dim); font-size: .85rem; margin: 0; }
.site-footer a { color: var(--r3-on-navy-dim); }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--r3-white); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--r3-footer-line); }
.footer-top nav { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; font-size: .9rem; }
.footer-legal { padding: 1.5rem 0; line-height: 1.7; }
.footer-copy { padding-top: 1.25rem; border-top: 1px solid var(--r3-footer-line); font-size: .8rem !important; }
