/* www.tummystay.com — Privacy Policy and Terms & Conditions.
   The same palette, fonts, header and footer as index.php, cut down to what a
   long reading page needs. */
:root {
  --primary: #2b8a3e;
  --primary-dark: #1c6b2c;
  --secondary: #ff922b;
  --dark: #212529;
  --gray: #5f676f;
  --light-gray: #e9ecef;
  --paper: #ffffff;
  --page: #f9f9f9;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--page); color: var(--dark); line-height: 1.7; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary); }

.main-header { background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 10; }
.header-content { display: flex; justify-content: space-between; align-items: center; padding-block: 16px; gap: 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; text-decoration: none; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--primary); }
.logo img { height: 43px; width: auto; display: block; }
.footer-logo img { height: 43px; width: auto; display: block; background: #fff; border-radius: 8px; padding: 6px 10px; box-sizing: content-box; }
.nav-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.nav-link { text-decoration: none; color: var(--dark); font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active { font-weight: 600; }

.legal-hero { background: linear-gradient(135deg, #e8f5ea 0%, #fff4e6 100%); padding: 56px 0 40px; }
.legal-hero h1 { font-family: 'Poppins', sans-serif; font-size: 2.4rem; line-height: 1.2; margin-bottom: 10px; }
.legal-hero p { color: var(--gray); max-width: 720px; }
.legal-hero .meta { margin-top: 14px; font-size: .9rem; color: var(--gray); }
.legal-hero .meta b { color: var(--dark); }

.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding: 40px 20px 60px; }
.toc { position: sticky; top: 90px; align-self: start; background: var(--paper); border: 1px solid var(--light-gray); border-radius: 12px; padding: 18px; font-size: .9rem; }
.toc h2 { font-family: 'Poppins', sans-serif; font-size: 1rem; margin-bottom: 8px; }
.toc ol { padding-left: 18px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--gray); text-decoration: none; }
.toc a:hover { color: var(--primary); }

.doc { background: var(--paper); border: 1px solid var(--light-gray); border-radius: 12px; padding: 36px 40px; min-width: 0; }
.doc section + section { margin-top: 34px; }
.doc h2 { font-family: 'Poppins', sans-serif; font-size: 1.35rem; margin-bottom: 10px; scroll-margin-top: 90px; }
.doc h3 { font-size: 1.02rem; margin: 18px 0 6px; }
.doc p, .doc li { color: #343a40; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0; }
.doc li { margin: 5px 0; }
.note { background: #f1f8f2; border-left: 4px solid var(--primary); padding: 12px 16px; border-radius: 6px; margin: 14px 0; }
.card { border: 1px solid var(--light-gray); border-radius: 10px; padding: 16px 18px; margin-top: 10px; }
.card p { margin: 2px 0 !important; }
table.simple { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .94rem; }
table.simple th, table.simple td { border: 1px solid var(--light-gray); padding: 8px 10px; text-align: left; vertical-align: top; }
table.simple th { background: #f6f7f8; font-weight: 600; }
.scroll { overflow-x: auto; }

.footer { background: var(--dark); color: #fff; padding: 46px 0 26px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 30px; }
.footer-logo { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.5rem; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.footer p, .footer li { color: #adb5bd; font-size: .93rem; }
.footer h3 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: #adb5bd; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 22px; border-top: 1px solid #495057; color: #adb5bd; font-size: .88rem; }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; padding: 24px 16px 44px; }
  .toc { position: static; }
  .doc { padding: 24px 18px; }
  .legal-hero h1 { font-size: 1.8rem; }
  .nav-links { gap: 14px; font-size: .95rem; }
}
@media print {
  .main-header, .toc, .footer { display: none; }
  .legal { display: block; padding: 0; }
  .doc { border: 0; padding: 0; }
}
