/* ============================================================================
   doc.css — shared styles for Takesh content/legal/support pages.
   Loaded AFTER styles.css (which defines the :root brand tokens).
   These pages are preliminary placeholders; keep the markup simple.
   ========================================================================== */

body.doc-page { background: var(--paper); color: var(--ink); }

/* Slim header */
.doc-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 247, .9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.doc-header-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.doc-header .brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); }
.doc-header .brand svg { width: 30px; height: 30px; }
.doc-header .back { font-size: 14px; font-weight: 600; color: var(--muted); }
.doc-header .back:hover { color: var(--ink); }
.doc-header a:focus-visible, .brand:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 3px; border-radius: 4px; }

/* Document body */
.doc {
  max-width: 760px; margin: 0 auto; padding: 56px 24px 72px;
}
.doc .doc-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--amber-deep); margin-bottom: 12px; }
.doc h1 { font-family: var(--display); font-size: clamp(30px, 5vw, 44px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; overflow-wrap: break-word; }
.doc .lead { font-size: 18px; color: var(--muted); margin: 0 0 8px; max-width: 640px; }
.doc .doc-meta { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Preliminary / draft banner */
.doc-note {
  margin: 26px 0 4px; padding: 14px 18px;
  background: rgba(252, 184, 39, .12);
  border: 1px solid rgba(252, 184, 39, .5);
  border-radius: 12px;
  font-size: 13.5px; color: var(--ink);
}
.doc-note strong { font-weight: 700; }

.doc h2 { font-family: var(--display); font-size: 22px; letter-spacing: -.01em; margin: 40px 0 12px; }
.doc h3 { font-family: var(--display); font-size: 17px; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.7; color: #2a3550; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--amber-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--ink); }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }
.doc strong { font-weight: 700; color: var(--ink); }
/* Tables scroll horizontally within their own box on narrow screens instead of
   forcing the whole page sideways (display:block keeps the outer box a scroll
   container while the rows/cells retain their table layout). */
.doc table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; margin: 8px 0 20px; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.doc .callout { background: var(--paper-2); border-radius: 12px; padding: 18px 20px; margin: 18px 0; }

/* FAQ / disclosure */
.doc details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin: 10px 0; background: var(--white); }
.doc details[open] { box-shadow: 0 10px 30px -18px rgba(14,23,41,.25); }
.doc summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 15.5px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; font-size: 20px; color: var(--amber-deep); }
.doc details[open] summary::after { content: "\2212"; }
.doc details > *:not(summary) { margin-bottom: 14px; }

/* Contact / info cards */
.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.doc-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--white); }
.doc-card h3 { margin: 0 0 6px; font-size: 15px; }
.doc-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* Slim footer */
.doc-foot { border-top: 1px solid var(--line); background: var(--paper); }
.doc-foot-inner { max-width: 1120px; margin: 0 auto; padding: 30px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.doc-foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.doc-foot-links a { font-size: 13.5px; color: var(--muted); }
.doc-foot-links a:hover { color: var(--ink); }
.doc-foot p { font-size: 13px; color: var(--muted); margin: 0; }

@media (max-width: 600px) {
  .doc { padding: 40px 20px 56px; }
  .doc-header-inner { padding: 12px 20px; }
}
