/* Rokesmith Ltd — Static Site
   Brand: Dark blue #1A3441, Light blue #3F616F, Light green #D1DBBE
   Fonts: Fira Sans (headings), Open Sans (body) */

:root {
  --dark-blue: #1A3441;
  --light-blue: #3F616F;
  --light-green: #D1DBBE;
  --off-white: #F7F8F4;
  --text: #2C2C2C;
  --text-light: #6B7B7E;
  --border: #E2E6E0;
}

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

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header ---- */

.site-header {
  background: var(--dark-blue);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-header a {
  display: inline-block;
  line-height: 0;
}

.site-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.site-header a:hover .site-logo {
  opacity: 1;
}

/* ---- Main ---- */

main {
  flex: 1;
}

/* ---- Homepage Hero ---- */

.hero {
  background: var(--dark-blue);
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 2rem 4.5rem;
  text-align: center;
}

.hero h1 {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

.hero p {
  margin-top: 1.2rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ---- Brands Section ---- */

.brands {
  padding: 4rem 2rem 5rem;
  max-width: 860px;
  margin: 0 auto;
}

.brands-heading {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-blue);
  text-align: center;
  margin-bottom: 3rem;
}

.brand-card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border);
}

.brand-card:first-of-type {
  border-top: 1px solid var(--border);
}

.brand-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--dark-blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-green);
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-card-body {
  flex: 1;
  min-width: 0;
}

.brand-card-body h3 {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.brand-card-body p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.brand-link {
  display: inline-block;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light-blue);
  text-decoration: none;
  padding: 0.45rem 1.2rem;
  border: 1.5px solid var(--light-blue);
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
}

.brand-link:hover {
  background: var(--dark-blue);
  border-color: var(--dark-blue);
  color: #fff;
}

/* ---- Legal Pages ---- */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.legal-page h1 {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--dark-blue);
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
}

.legal-content h3 {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark-blue);
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.7;
}

.legal-content .text-center {
  text-align: center;
}

.legal-content ul {
  margin-bottom: 0.9rem;
  padding-left: 1.5rem;
}

.legal-content ul li {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-content ul ul {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--light-blue);
  text-decoration: underline;
  text-decoration-color: rgba(63, 97, 111, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.legal-content a:hover {
  text-decoration-color: var(--light-blue);
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.88rem;
}

.legal-content table td,
.legal-content table th {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-content table thead td,
.legal-content table thead th {
  background: var(--dark-blue);
  color: #fff;
  font-weight: 600;
}

.legal-content .notice {
  background: #F0F1ED;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--light-blue);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 1.2rem 0;
}

.legal-content .warning {
  background: #FDF2F2;
  padding: 1rem 1.2rem;
  border-left: 3px solid #C0392B;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 1.2rem 0;
  text-align: center;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--dark-blue);
  color: rgba(255, 255, 255, 0.55);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--light-green);
}

.footer-legal {
  max-width: 600px;
  margin: 0 auto;
}

.footer-copyright {
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .hero {
    padding: 3rem 1.5rem 3.5rem;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .brands {
    padding: 3rem 1.5rem 4rem;
  }

  .brand-card {
    flex-direction: column;
    gap: 1rem;
  }

  .legal-page {
    padding: 2rem 1.5rem 4rem;
  }

  .site-footer {
    padding: 2rem 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }
}
