/* One Connected Family · shared styles
   Brand: Lexend + Satisfy · aqua #1AA9BC · pink #E8456F · deep peach #E8682F · butter #FFC94D
   Indigo #1F1347 is for text only. Most layout lives inline on each element. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFCF8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: #C62F57; }
a:hover { color: #1F1347; }
a[style*="border-radius: 999px"] { transition: transform .15s ease, filter .15s ease; }
a[style*="border-radius: 999px"]:hover { transform: translateY(-2px); filter: brightness(1.05); }
button { font: inherit; }
:focus-visible { outline: 3px solid #1AA9BC; outline-offset: 3px; }

/* About dropdown */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.site-nav details > div a:hover { background: #F7F2EC; }

/* Mobile menu button, hidden on desktop */
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }

/* Book page choice cards */
.choice { text-align: left; width: 100%; }

@media (max-width: 960px) {
  .site-header { position: relative; }
  .menu-btn { display: inline-flex; }
  .site-nav { display: none !important; width: 100%; flex-direction: column; align-items: flex-start !important; gap: 18px !important; padding: 8px 0 16px; font-size: 17px !important; }
  .site-nav.open { display: flex !important; }
  .site-nav details > div { position: static !important; box-shadow: none !important; padding: 6px 0 0 !important; min-width: 0 !important; }
}

@media (max-width: 700px) {
  h1 { font-size: 40px !important; line-height: 1.12 !important; }
  h1 span { font-size: 48px !important; }
  h2 { font-size: 30px !important; line-height: 1.2 !important; }
  h2 span { font-size: 38px !important; }
  h3 { font-size: 22px !important; }
  [style*="max-width: 1240px"], [style*="max-width: 1000px"], [style*="max-width: 900px"], header, footer > div { padding-left: 20px !important; padding-right: 20px !important; }
  [style*="max-width"][style*="padding: 96px"], [style*="max-width"][style*="padding: 88px"], [style*="max-width"][style*="padding: 100px"], [style*="max-width"][style*="padding: 80px"], [style*="max-width"][style*="padding: 72px"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  section[style*="border-radius: 48px"], section[style*="border-radius: 40px"] { margin-left: 16px !important; margin-right: 16px !important; padding: 36px 24px !important; border-radius: 32px !important; }
  div[style*="border-radius: 32px; padding: 48px"], div[style*="border-radius: 32px; padding: 44px"], div[style*="border-radius: 32px; padding: 40px"] { padding: 32px 26px !important; }
  img[style*="height: 520px"], img[style*="height: 480px"], img[style*="height: 460px"] { height: 380px !important; }
  img[style*="flex: 0 0 240px"] { flex: 1 1 100% !important; width: 100% !important; height: 200px !important; }
  img[style*="flex: 0 1 380px"], img[style*="flex: 0 1 300px"] { flex: 1 1 100% !important; width: 100% !important; }
  div[style*="repeat(2, minmax(0, 1fr))"] { grid-template-columns: 1fr !important; }
  p[style*="font-family: Satisfy"][style*="font-size: 88px"] { font-size: 56px !important; }
}

/* Legal row in footer */
.legal-row { max-width: 1240px; margin: 0 auto; padding: 18px 32px 28px; border-top: 1px solid #E6DED4; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-family: Lexend, Arial, sans-serif; font-size: 14px; color: #6B6585; }
.legal-row nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-row a, .cookie-settings-link { color: #4B4566; font: inherit; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

/* Legal pages */
.legal-hero { background: linear-gradient(120deg,#B3E3EA,#F8D4DE,#FCDDC3,#F9EBA3); font-family: Lexend, Arial, sans-serif; color: #1F1347; }
.legal-hero > div { max-width: 1240px; margin: 0 auto; padding: 56px 32px; }
.legal-hero h1 { margin: 0; font-size: 52px; font-weight: 700; letter-spacing: -1px; }
.legal-hero p { margin: 10px 0 0; color: #4B4566; font-size: 16px; }
.legal-wrap { max-width: 1240px; margin: 0 auto; padding: 56px 32px 88px; display: flex; flex-wrap: wrap; gap: 48px; font-family: Lexend, Arial, sans-serif; color: #1F1347; }
.legal-side { flex: 0 0 220px; display: flex; flex-direction: column; gap: 8px; align-self: flex-start; position: sticky; top: 24px; }
.legal-side a { display: block; padding: 12px 18px; border-radius: 999px; text-decoration: none; color: #1F1347; background: #F7F2EC; font-weight: 600; font-size: 15px; }
.legal-side a[aria-current="page"] { background: #E8456F; color: #FFFFFF; }
.legal { flex: 1 1 560px; min-width: 0; max-width: 820px; font-size: 17px; line-height: 1.7; color: #4B4566; }
.legal .lead { font-size: 19px; color: #1F1347; }
.legal h2 { font-size: 26px; color: #1F1347; margin: 44px 0 10px; }
.legal h3 { font-size: 19px; color: #1F1347; margin: 22px 0 6px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal a { color: #C62F57; font-weight: 600; }
.tbl { overflow-x: auto; margin: 14px 0; border-radius: 18px; border: 1px solid #EFE8E0; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tbl th { background: #F7F2EC; color: #1F1347; text-align: left; padding: 12px 16px; }
.tbl td { padding: 12px 16px; border-top: 1px solid #EFE8E0; vertical-align: top; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 100; max-width: 760px; margin: 0 auto; background: #FFFFFF; border-radius: 28px; box-shadow: 0 20px 60px rgba(31,19,71,0.22); padding: 24px 28px; font-family: Lexend, Arial, sans-serif; color: #1F1347; }
.cookie-banner[hidden], .cb-prefs[hidden], .cb-main[hidden] { display: none; }
.cookie-banner p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: #4B4566; }
.cookie-banner a { color: #C62F57; font-weight: 600; }
.cb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cb-btn { border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 15px; color: #FFFFFF; cursor: pointer; }
.cb-pink { background: #E8456F; } .cb-aqua { background: #1AA9BC; } .cb-peach { background: #E8682F; }
.cb-prefs { display: flex; flex-direction: column; gap: 12px; }
.cb-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; background: #F7F2EC; border-radius: 16px; font-size: 15px; }
.cb-row small { color: #6B6585; }
.cb-row input { width: 22px; height: 22px; accent-color: #E8456F; }
.cb-prefs .cb-btn { align-self: flex-end; }
@media (max-width: 700px) {
  .legal-hero h1 { font-size: 36px !important; }
  .legal-side { flex: 1 1 100%; position: static; flex-direction: row; flex-wrap: wrap; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 20px; }
  .legal-row { padding-left: 20px; padding-right: 20px; }
}
