/* Double R policy pages (Terms, Privacy, Returns, Shipping, Disclaimer,
   Acceptable Use and the Policies index). One layout for all of them:
   a plain-words summary up top, a list of every policy on the side,
   numbered sections, and the contact details at the bottom. */

:root {
  --lg-navy: #004b88;
  --lg-navy-dark: #003060;
  --lg-ink: #0d1b2a;
  --lg-red: #D10024;
  --lg-steel: #f4f6f9;
  --lg-mid: #5b6878;
  --lg-line: rgba(0, 75, 136, 0.15);
  --lg-head: 'Barlow Condensed', 'Barlow', sans-serif;
  --lg-body: 'Barlow', 'Mulish', sans-serif;
}

.lg { background: var(--lg-steel); padding: 2rem 1rem 3.5rem; font-family: var(--lg-body); color: var(--lg-ink); }
.lg__wrap { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.75rem; align-items: start; }

/* Side list of policies */
.lg-nav { grid-column: 1; grid-row: 1; position: sticky; top: 4.5rem; background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(13, 27, 42, .06); padding: 1rem; }
.lg-nav__title { font-family: var(--lg-head); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--lg-mid); margin: .25rem .5rem .6rem; }
.lg-nav ul { list-style: none; margin: 0; padding: 0; }
.lg-nav a { display: block; padding: .55rem .7rem; border-radius: 8px; color: var(--lg-ink); font-weight: 600; text-decoration: none; }
.lg-nav a:hover { background: var(--lg-steel); color: var(--lg-navy); }
.lg-nav a.is-on { background: var(--lg-navy); color: #fff; }
.lg-nav__help { margin-top: .75rem; padding: .75rem .7rem 0; border-top: 1px solid var(--lg-line); font-size: .92rem; color: var(--lg-mid); }
.lg-nav__help a { display: inline; padding: 0; color: var(--lg-navy); }

/* Main column */
.lg-doc { grid-column: 2; grid-row: 1; background: #fff; border-radius: 12px; border-top: 6px solid var(--lg-navy); box-shadow: 0 6px 24px rgba(13, 27, 42, .08); padding: 2rem 2.25rem 2.5rem; min-width: 0; }
.lg-kicker { font-family: var(--lg-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--lg-red); font-size: .9rem; margin: 0; }
.lg .lg-doc h1 { font-family: var(--lg-head); font-weight: 800; font-size: 2.6rem; line-height: 1.05; color: var(--lg-navy); margin: .2rem 0 .4rem; }
.lg-updated { color: var(--lg-mid); font-size: .95rem; margin-bottom: 1.5rem; }

.lg-short { background: #eef4fb; border-left: 5px solid var(--lg-navy); border-radius: 8px; padding: 1.1rem 1.25rem; margin-bottom: 1.75rem; }
.lg .lg-short h2 { font-family: var(--lg-head); font-size: 1.35rem; font-weight: 800; color: var(--lg-navy); margin: 0 0 .5rem; }
.lg-short ul { margin: 0; padding-left: 1.2rem; }
.lg-short li { margin: .3rem 0; line-height: 1.5; }

.lg-toc { border: 1px solid var(--lg-line); border-radius: 8px; padding: .9rem 1.1rem; margin-bottom: 2rem; }
.lg-toc summary { font-weight: 700; cursor: pointer; color: var(--lg-navy); }
.lg-toc ol { margin: .6rem 0 0; padding-left: 1.4rem; columns: 2; column-gap: 2rem; }
.lg-toc li { margin: .2rem 0; break-inside: avoid; }
.lg-toc a { color: var(--lg-ink); }

.lg-body { font-size: 1.05rem; line-height: 1.65; counter-reset: lg-sec; }
.lg-body section { padding-top: .5rem; margin-bottom: 1.6rem; scroll-margin-top: 5rem; }
.lg .lg-body h2 { font-family: var(--lg-head); font-weight: 800; font-size: 1.55rem; color: var(--lg-ink); margin: 0 0 .6rem; padding-bottom: .35rem; border-bottom: 2px solid var(--lg-line); }
.lg .lg-body h2::before { counter-increment: lg-sec; content: counter(lg-sec) ". "; color: var(--lg-red); }
.lg .lg-body h3 { font-size: 1.12rem; font-weight: 700; margin: 1rem 0 .35rem; color: var(--lg-navy-dark); }
.lg-body p, .lg-body ul, .lg-body ol { margin-bottom: .75rem; }
.lg-body li { margin: .25rem 0; }
.lg-body a { color: var(--lg-navy); text-decoration: underline; }
.lg-body .lg-caps { text-transform: none; font-weight: 600; }

.lg-table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .97rem; }
.lg-table th, .lg-table td { border: 1px solid var(--lg-line); padding: .5rem .65rem; vertical-align: top; text-align: left; }
.lg-table th { background: var(--lg-steel); font-weight: 700; }
.lg-table-wrap { overflow-x: auto; }

.lg-note { background: #fff8e6; border-left: 5px solid #e8a400; border-radius: 8px; padding: .8rem 1rem; margin: .75rem 0 1rem; }

.lg-contact { margin-top: 2rem; background: var(--lg-steel); border-radius: 10px; padding: 1.1rem 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem 1.5rem; }
.lg .lg-contact h2 { grid-column: 1 / -1; font-family: var(--lg-head); font-weight: 800; font-size: 1.3rem; margin: 0; color: var(--lg-navy); }
.lg-contact div { line-height: 1.5; }
.lg-contact strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--lg-mid); }
.lg-contact a { color: var(--lg-navy); font-weight: 600; }

/* The site theme (nicepage.css) gives every h1/h2 a large serif font;
   keep policy headings in the house font. */
.lg h1, .lg h2, .lg h3 { letter-spacing: 0; line-height: 1.2; }
.lg-doc ul { list-style: disc; }
.lg-doc ol { list-style: decimal; }
.lg-doc li { display: list-item; }
.lg .lg-doc p, .lg .lg-doc li, .lg .lg-nav p, .lg .lg-doc td { line-height: 1.6; }
.lg .lg-short h2, .lg .lg-body h2, .lg .lg-contact h2, .lg .lg-card h2 { margin-top: 0; }

/* Policies index cards */
.lg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.lg-card { display: block; border: 1px solid var(--lg-line); border-radius: 10px; padding: 1.1rem 1.2rem; color: var(--lg-ink); text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.lg-card:hover { border-color: var(--lg-navy); box-shadow: 0 4px 14px rgba(0, 75, 136, .12); color: var(--lg-ink); text-decoration: none; }
.lg .lg-card h2 { font-family: var(--lg-head); font-weight: 800; font-size: 1.35rem; color: var(--lg-navy); margin: 0 0 .3rem; }
.lg .lg-card h2::before { content: none; }
.lg-card p { margin: 0; color: var(--lg-mid); line-height: 1.45; }
.lg-card i { color: var(--lg-red); margin-right: .35rem; }

@media (max-width: 860px) {
  .lg__wrap { grid-template-columns: 1fr; }
  .lg-nav { grid-column: 1; grid-row: 2; position: static; }
  .lg-doc { grid-column: 1; grid-row: 1; }
  .lg-doc { padding: 1.5rem 1.15rem 2rem; }
  .lg .lg-doc h1 { font-size: 2.1rem; }
  .lg-toc ol { columns: 1; }
}

@media print {
  .lg-nav, header, footer, #cookie-consent-popup { display: none !important; }
  .lg { background: #fff; padding: 0; }
  .lg__wrap { display: block; }
  .lg-doc { box-shadow: none; border: 0; padding: 0; }
}

/* Cards sit inside .lg-body on the index page: no link underline or section rule. */
.lg .lg-body a.lg-card, .lg .lg-body a.lg-card:hover { text-decoration: none; }
.lg .lg-body .lg-card h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: .3rem; font-size: 1.35rem; color: var(--lg-navy); }
.lg .lg-body .lg-card p { margin: 0; }
