/* Shared by /terms/ and /privacy/.
 *
 * Static HTML rather than routes in the React app, on purpose. These two pages
 * are text that changes once a year at most, and they must stay readable if the
 * bundle ever fails to load, because the document a guest is arguing about is
 * not the place for a blank screen and a spinner. Vite copies public/ verbatim,
 * so they ship with every deploy and need no build step of their own.
 *
 * The palette and both typefaces are the site's, so a guest who follows a link
 * from the footer does not feel handed off to a different company. Single
 * theme, matching the listing page, which is deliberately always-light.
 */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-400-800.woff2) format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/hanken-grotesk-400-800.woff2) format('woff2');
}

:root {
  --ground: #FFFBF7;
  --soft: #FFF4E9;
  --paper: #FFFFFF;
  --ink: #2A1E14;
  --ink-soft: #6B5A4A;
  --ink-faint: #85715C;
  --line: #F0E3D3;
  --line2: #E6D5BE;
  --flame: #F2681C;
  --flame-ink: #BB490B;
  --flame-soft: #FFEDDF;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 5rem }

/* --- masthead ----------------------------------------------------------- */
.top {
  display: flex; align-items: center; gap: .7rem;
  padding-bottom: 1.5rem; margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-faint);
}
.top img { width: 34px; height: 34px; flex: none }
.top a { color: var(--flame-ink); font-weight: 700; text-decoration: none }
.top a:hover { text-decoration: underline }
.top .sep { margin-left: auto }

h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.1;
  margin: 0; text-wrap: balance;
}
.lede { color: var(--ink-soft); margin: 1rem 0 0; max-width: 40rem }

/* The scope note. The single most important paragraph on the terms page,
   because a guest who booked on Agoda must not read these as theirs. */
.scope {
  margin-top: 1.75rem; padding: 1rem 1.25rem;
  background: var(--flame-soft); border-left: 3px solid var(--flame);
  border-radius: 0 10px 10px 0; font-size: .95rem; color: var(--ink-soft);
}
.scope strong { color: var(--ink) }

h2 {
  font-family: var(--display);
  font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em;
  margin: 2.75rem 0 .6rem; scroll-margin-top: 1rem;
}
h2 .n {
  color: var(--flame-ink); font-family: var(--sans);
  font-size: .82rem; font-weight: 800; margin-right: .5rem;
  font-variant-numeric: tabular-nums;
}
h3 { font-size: .98rem; font-weight: 700; margin: 1.4rem 0 .3rem }
p { margin: .7rem 0 }
ul { margin: .7rem 0; padding-left: 1.2rem }
li { margin-bottom: .45rem }
a { color: var(--flame-ink); text-underline-offset: 3px }
strong { font-weight: 700 }

/* Sub-headings inside a section, written as "## ..." in the admin.
 *
 * Given a rule and a little air rather than just a bolder size: the worked
 * example in the payment section used to sit in its own tinted box, and when
 * the page became editable that wrapper had nowhere to come from. This keeps it
 * reading as a distinct thing without needing markup the editor cannot produce.
 */
h3 {
  margin: 1.9rem 0 .4rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
h3 + p { margin-top: .3rem }

.terms-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .94rem }
.terms-table th, .terms-table td {
  text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
.terms-table th {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-faint); font-weight: 800;
}
/* No nowrap here. It was added when every label was two or three words, and
   the security-deposit row is now a full clause: holding it on one line pushed
   the table past the viewport at any width between the phone breakpoint and
   about 700px, which is exactly the range nobody tests. */
.terms-table td:first-child { font-weight: 700; padding-right: 1.2rem; min-width: 7rem }

.note {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--ink-faint);
}
.note a { color: var(--flame-ink) }

@media (max-width: 480px) {
  body { font-size: 16px }
  .terms-table td:first-child { min-width: 0 }
}
