/* Local Links LLC — styles matching the original Google Sites theme */

:root {
  --brand-blue: #3e54d3;     /* primary: headings, buttons, header on scroll */
  --brand-sky: #4f80e2;      /* product section background */
  --brand-teal: #15cdca;     /* product title accent */
  --text: #1c1c1c;
  --text-muted: rgba(28, 28, 28, 0.82);
  --divider: rgba(28, 28, 28, 0.12);
  --white: #ffffff;
  --content-width: 1160px;
  --header-height: 56px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-blue); }

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.script-title {
  font-family: 'Oleo Script', cursive;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 0;
  line-height: 1.2;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 28px;
  color: var(--white);
  background: transparent;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  background: var(--brand-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Pages without a banner use a light header */
.no-banner .site-header { color: var(--text); background: var(--white); }
.no-banner .site-header.scrolled { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  font-size: 20px;
  white-space: nowrap;
}

.brand img { width: 40px; height: 40px; }

.nav { margin-left: auto; display: flex; gap: 26px; }

.nav a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.01em;
  opacity: 0.92;
}

.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav a.active { font-weight: 700; opacity: 1; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  padding: 8px;
  margin: 0 8px 0 -8px;
  cursor: pointer;
}

.menu-toggle svg { width: 24px; height: 24px; display: block; }

/* ---------- Banner ---------- */

.banner {
  height: 340px;
  background: #3f55d4 url('../images/banner-skyline.png') center 40% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-height) 24px 40px;
}

.banner h1 {
  font-family: 'Oleo Script', cursive;
  font-weight: 700;
  color: var(--white);
  font-size: 60px;
  line-height: 1.1;
  margin: 0;
}

/* ---------- Content sections ---------- */

.section { padding: 88px 0 72px; text-align: center; }

.section h2.script-title { font-size: 24px; margin-bottom: 18px; }

.section p { margin: 0 0 14px; font-size: 15px; color: var(--text); }

.section-intro { padding: 88px 0 80px; }

.section-blue {
  background: var(--brand-sky);
  color: var(--white);
  padding: 32px 0 20px;
}

.section-blue p { color: var(--white); font-size: 15.5px; }

.product-title {
  display: inline-block;
  font-size: 22px;
  color: var(--brand-teal);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: 0 0 14px;
  font-weight: 400;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 70px 0 30px;
}

.screenshots img { width: 100%; height: auto; }

.store-badges {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
}

.store-badges img { height: 50px; width: auto; }

.spaced { margin-top: 120px; }

.divider {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 0;
}

/* Contact form embed */
.form-embed {
  padding: 36px 0 60px;
  display: flex;
  justify-content: center;
}

.form-embed iframe {
  width: 100%;
  max-width: 640px;
  height: 1060px;
  border: 0;
}

/* Legal pages */
.legal { padding: calc(var(--header-height) + 34px) 0 60px; }
.legal h1.script-title { font-size: 46px; text-align: center; margin-bottom: 32px; }
.legal-embed { min-height: 600px; text-align: left; max-width: 900px; margin: 0 auto; overflow-wrap: anywhere; }
.legal-embed strong, .legal-embed b { font-weight: 700; } /* Termly nests <strong>, which otherwise renders as Arial Black */
.legal-embed [id], .legal-embed a[name] { scroll-margin-top: calc(var(--header-height) + 16px); }

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

.site-footer { padding: 64px 0 40px; }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  min-width: 266px;
  padding: 8px 24px;
  background: var(--brand-blue);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  border-radius: 4px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.button:hover { background: #3346b8; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }

.socials { display: flex; gap: 50px; margin-right: 14px; }

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #000;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.socials a:hover { transform: scale(1.08); }
.socials .fa-facebook-f { font-size: 19px; margin-top: 5px; }

.copyright {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 56px;
}

.copyright p { margin: 0 0 8px; }
.copyright a { color: var(--brand-blue); text-underline-offset: 2px; }

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .site-header { padding: 0 16px; }
  .menu-toggle { display: block; }
  .brand span { display: none; }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    flex-direction: column;
    gap: 0;
    padding: 72px 0 24px;
    background: var(--white);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 101;
  }

  .nav a { color: var(--text); padding: 14px 28px; font-size: 15px; }
  .nav a.active { color: var(--brand-blue); background: rgba(62, 84, 211, 0.08); }

  .nav-open .nav { transform: translateX(0); }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 100;
  }

  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .nav-open .menu-toggle { position: relative; z-index: 102; color: var(--text); }

  .banner { height: 250px; }
  .banner h1 { font-size: 40px; }

  .section, .section-intro { padding: 56px 0 48px; }

  .screenshots { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }

  .store-badges { justify-content: center; flex-wrap: wrap; }
  .store-badges img { height: 44px; }

  .footer-row { flex-direction: column; }
  .button { min-width: 0; width: 100%; max-width: 320px; }
  .socials { gap: 32px; margin: 0; }

  .legal h1.script-title { font-size: 36px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .screenshots { grid-template-columns: 1fr; padding: 0 24px; }
}

/* App-specific legal and support pages (e.g. /local-links-tcg/privacy-policy) */
.app-legal { max-width: 820px; margin: 0 auto; text-align: left; line-height: 1.6; }
.app-legal h2 { font-size: 22px; margin: 32px 0 10px; }
.app-legal p, .app-legal li { margin: 0 0 12px; }
.app-legal ul { padding-left: 22px; margin: 0 0 12px; }
.app-legal-meta { color: rgba(28, 28, 28, 0.6); text-align: center; margin-bottom: 24px; }
.app-legal-note { border: 1px solid var(--divider); border-radius: 10px; padding: 12px 16px; }
.app-legal-table { overflow-x: auto; margin: 0 0 12px; }
.app-legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.app-legal th, .app-legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--divider); }
.app-legal th { font-weight: 700; }

/* Product links row (Our Products overview and each product page) */
.product-summary { padding: 40px 0 32px; }
.product-summary + .product-summary { border-top: 1px solid rgba(255, 255, 255, 0.25); }
.product-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 18px 0 6px; }
.product-links a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.product-links a:hover { color: var(--brand-teal); }
