/* restrogrow.com legal pages (privacy, terms, refund, cookie). Uses the site tokens from style.css.
   The contents list, progress bar and back-to-top button are driven by main/website/policy_page.js
   (shared with the restaurant policy pages), hence the pp- ids and classes. */
.lg { background: var(--paper); }
.lg .material-symbols-rounded { font-size: 20px; line-height: 1; vertical-align: middle; }
html { scroll-padding-top: 96px; }
.lg-container { max-width: 1120px; }

.pp-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; pointer-events: none; }
.pp-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }

/* hero */
.lg-hero {
  padding: 124px 0 0; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(640px 260px at 88% 40px, var(--accent-wash), transparent 70%),
    var(--paper-raised);
}
.lg-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-wash); color: var(--accent-dark); font: 600 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.lg-eyebrow .material-symbols-rounded { font-size: 16px; }
.lg-hero-row { display: flex; align-items: flex-start; gap: 20px; margin-top: 18px; }
.lg-hero-ic {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 32px !important; box-shadow: var(--shadow-card);
}
.lg-hero h1 { margin: 0 0 8px; color: var(--ink); font: 800 clamp(30px, 4.4vw, 46px)/1.08 var(--font-display); letter-spacing: -.02em; }
.lg-lead { margin: 0; max-width: 660px; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lg-meta > span, .lg-print {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); font: 500 13px/1 var(--font-body);
}
.lg-meta .material-symbols-rounded { font-size: 16px; color: var(--ink-faint); }
.lg-print { cursor: pointer; background: var(--paper-raised); }
.lg-print:hover, .lg-print:hover .material-symbols-rounded { color: var(--accent); border-color: var(--accent); }

.lg-tabs { display: flex; gap: 4px; margin-top: 24px; overflow-x: auto; scrollbar-width: none; }
.lg-tabs::-webkit-scrollbar { display: none; }
.lg-tabs a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 12px 14px 13px; border-bottom: 2px solid transparent;
  color: var(--ink-faint); font: 600 14px/1 var(--font-body); text-decoration: none; transition: color .15s, border-color .15s;
}
.lg-tabs a .material-symbols-rounded { font-size: 18px; }
.lg-tabs a:hover { color: var(--ink); }
.lg-tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }

/* contents + text */
.lg-main { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 36px; padding-bottom: 72px; }
.lg-col { display: grid; gap: 20px; min-width: 0; }
.lg-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }

.pp-toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.pp-toc summary { display: none; }
.pp-toc::before { content: 'On this page'; display: block; margin: 0 0 10px; color: var(--ink-faint); font: 600 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.pp-toc ol { list-style: none; margin: 0; padding: 0 0 0 2px; border-left: 2px solid var(--line); }
.pp-toc li { margin: 0; }
.pp-toc a {
  display: block; margin-left: -4px; padding: 7px 12px; border-left: 2px solid transparent; border-radius: 0 10px 10px 0;
  color: var(--ink-faint); font-size: 14px; line-height: 1.4; text-decoration: none; transition: color .15s, background .15s;
}
.pp-toc a:hover { color: var(--ink); background: var(--paper-raised); }
.pp-toc a.on { color: var(--accent); border-left-color: var(--accent); background: var(--accent-wash); font-weight: 600; }

.lg-body { padding: 40px 48px 44px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.lg-body h2 {
  margin: 40px 0 14px; padding-top: 32px; border-top: 1px solid var(--line-soft);
  color: var(--ink); font: 700 23px/1.25 var(--font-display); letter-spacing: -.01em;
}
.lg-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.lg-body h3 { margin: 24px 0 10px; color: var(--ink); font: 700 17px/1.4 var(--font-display); }
.lg-body p { margin: 0 0 14px; }
.lg-body ul { list-style: none; margin: 0 0 16px; padding: 0; }
.lg-body ul li { position: relative; margin: 0 0 8px; padding-left: 26px; }
.lg-body ul li::before { content: ''; position: absolute; left: 6px; top: .66em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.lg-body ol { margin: 0 0 16px; padding-left: 22px; }
.lg-body ol li::marker { color: var(--accent); font-weight: 700; }
.lg-body strong { color: var(--ink); }
.lg-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.lg-body h2.pp-hit { animation: lgHit 1.2s ease; }
@keyframes lgHit { 0% { color: var(--accent); } 100% { color: var(--ink); } }

.lg-help { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lg-help-ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 24px !important; }
.lg-help-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lg-help-text b { font: 700 17px/1.35 var(--font-display); color: #fff; }
.lg-help-text span { color: rgba(245, 239, 226, .72); font-size: 14px; line-height: 1.5; }
.lg-help-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lg-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font: 600 14px/1 var(--font-body); text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s;
}
.lg-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.lg-btn-ghost { background: transparent; border-color: rgba(245, 239, 226, .3); }
.lg-btn-ghost:hover { background: rgba(245, 239, 226, .1); }

.pp-up {
  position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--ink); color: #fff; cursor: pointer; box-shadow: var(--shadow-lift);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.pp-up.show { opacity: 1; transform: none; pointer-events: auto; }

.lg-hero-row, .lg-meta, .lg-col > * { animation: lgIn .45s ease both; }
.lg-col > *:nth-child(2) { animation-delay: .1s; }
@keyframes lgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .lg-main { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .pp-toc { position: static; max-height: none; overflow: visible; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 14px; }
  .pp-toc::before { display: none; }
  .pp-toc summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; color: var(--ink); font: 700 15px/1 var(--font-display); }
  .pp-toc summary::-webkit-details-marker { display: none; }
  .pp-toc summary .material-symbols-rounded { color: var(--accent); }
  .pp-toc .pp-chev { margin-left: auto; color: var(--ink-faint) !important; transition: transform .2s; }
  .pp-toc[open] .pp-chev { transform: rotate(180deg); }
  .pp-toc ol { margin: 0 16px 14px; }
}
@media (max-width: 640px) {
  .lg-hero { padding-top: 96px; }
  .lg-hero-row { gap: 14px; }
  .lg-hero-ic { width: 50px; height: 50px; border-radius: 14px; font-size: 26px !important; }
  .lg-lead { font-size: 15px; }
  .lg-print { display: none !important; }
  .lg-tabs { margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .lg-tabs a { padding: 12px 10px 13px; }
  .lg-body { padding: 24px 20px 28px; font-size: 15px; }
  .lg-body h2 { margin-top: 30px; padding-top: 24px; font-size: 20px; }
  .lg-help { flex-wrap: wrap; padding: 20px; }
  .lg-help-actions { width: 100%; }
  .lg-help-actions .lg-btn { flex: 1; justify-content: center; }
  .pp-up { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg *, .lg *::before { animation: none !important; transition: none !important; }
}
@media print {
  .navbar, .footer, .pp-progress, .lg-tabs, .lg-print, .pp-toc, .lg-help, .pp-up { display: none !important; }
  .lg, .lg-hero { background: #fff; }
  .lg-hero { padding: 0; border: 0; }
  .lg-main { display: block; }
  .lg-card { border: 0; box-shadow: none; }
  .lg-body { padding: 0; }
}
