/*
 * Shared styling for the policy and information pages.
 *
 * These pages do not load styles.css. That file is 138KB built for the
 * storefront — its header, carousels and grid would all have to be undone
 * again here. These are documents meant to be read, so they get the brand's
 * type and colour and nothing else.
 */

:root {
  --color-ink: #0a0a0a;
  --color-muted: #707070;
  --color-hairline: #e5e5e5;
  --color-page: #ffffff;
  --color-surface: #f9f9f9;
  --font-headline: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --reading-width: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* --- Masthead ------------------------------------------------------------ */

.doc-head {
  border-bottom: 1px solid var(--color-hairline);
  padding: 1.5rem 1.5rem;
}

.doc-head-inner {
  max-width: var(--reading-width);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: var(--color-ink);
}

.back-link {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.back-link:hover { color: var(--color-ink); border-bottom-color: var(--color-ink); }

/* --- Document ------------------------------------------------------------ */

.doc {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.doc h1 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.doc .standfirst {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.doc .updated {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-hairline);
}

.doc h2 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  margin: 3rem 0 0.75rem;
}

.doc h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 2rem 0 0.5rem;
}

.doc p, .doc li { color: #2a2a2a; }
.doc p { margin: 0 0 1rem; }
.doc ul, .doc ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.doc li { margin-bottom: 0.5rem; }
.doc strong { font-weight: 600; }

.doc a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.doc a:hover { color: var(--color-muted); }

/* A plain definition block, for figures and contact details. */
.facts {
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.5rem; }
.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-top: 0.15rem;
}
.facts dd { margin: 0; }

@media (max-width: 30rem) {
  .facts dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .facts dd { margin-bottom: 0.75rem; }
}

/*
 * A detail the shop owner still has to supply. Marked rather than invented:
 * a made-up registered address or helpline on a policy page is worse than a
 * visible gap, and Razorpay's reviewers read these pages closely.
 */
.tbc {
  background: #fff4d6;
  border-bottom: 1px dashed #b78a00;
  color: #6b5200;
  padding: 0 0.2em;
  font-style: normal;
}

/* --- Foot --------------------------------------------------------------- */

.doc-foot {
  border-top: 1px solid var(--color-hairline);
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}

.doc-foot nav {
  max-width: var(--reading-width);
  margin: 0 auto 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.doc-foot a {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-muted);
}

.doc-foot a:hover { color: var(--color-ink); }
.doc-foot p { font-size: 0.72rem; color: var(--color-muted); margin: 0; }
