/* ============================================================
   CLICKJI.COM — legal.css
   Shared by privacy.html, terms.html, delivery.html, refund.html
   ============================================================ */

:root {
  --navy: #0B2245;
  --navy-900: #071733;
  --coral: #FD4F3C;
  --coral-600: #E23A28;
  --coral-50: #FFEDE9;
  --mist: #F3F6FB;
  --ink: #0B2245;
  --body: #3E4B63;
  --muted: #6E7C96;
  --line: #DDE4EF;
  --line-strong: #C2CEE1;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  background: #fff;
  color: var(--body);
  font-family: var(--font-body);
  line-height: 1.8;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--coral-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }

.wrap { max-width: 940px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }

/* TOP BAR */
.top-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top-inner img { height: 40px; width: auto; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: var(--navy); white-space: nowrap;
}
.back-link:hover { color: var(--coral-600); text-decoration: none; }

/* HERO */
.page-hero { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding: clamp(2.4rem, 6vw, 3.6rem) 0; }
.page-hero .tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  color: #FF8873; margin-bottom: 0.7rem;
}
.page-hero .tag::before { content: ''; width: 9px; height: 9px; background: #FF8873; border-radius: 2px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 700; margin-bottom: 0.7rem; }
.page-hero p { max-width: 62ch; color: rgba(255, 255, 255, 0.72); }
.page-meta { margin-top: 1.1rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

/* CONTENT */
.doc { padding: clamp(2.2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.doc section { margin-bottom: 2.6rem; scroll-margin-top: 80px; }
.doc h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 0.7rem;
}
.doc h2 .n { color: var(--coral); font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }
.doc h3 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.doc p { margin-bottom: 0.9rem; max-width: 72ch; }
.doc ul.bul { margin: 0 0 1rem; }
.doc ul.bul li { position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem; max-width: 72ch; }
.doc ul.bul li::before {
  content: ''; position: absolute; left: 0; top: 0.72em;
  width: 6px; height: 6px; background: var(--coral); border-radius: 2px;
}

.note {
  background: var(--mist);
  border-left: 3px solid var(--coral);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}
.note strong { color: var(--ink); }

.tbl-scroll { overflow-x: auto; margin: 1.2rem 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 460px; font-size: 0.94rem; }
th, td { text-align: left; padding: 0.75rem 0.9rem; border: 1px solid var(--line); vertical-align: top; }
th { background: var(--mist); font-family: var(--font-display); font-weight: 600; color: var(--ink); }

/* CONTACT CARD */
.contact-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.3rem, 3vw, 2rem);
  margin-top: 2.5rem;
}
.contact-card h2 { border: 0; padding: 0; margin-bottom: 0.6rem; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1.6rem; margin-top: 1rem; }
.contact-list div { min-width: 0; }
.contact-list .k { font-size: 0.8rem; color: var(--muted); }
.contact-list .v { font-family: var(--font-display); font-weight: 600; color: var(--ink); word-break: break-word; }

/* FOOTER */
.legal-foot {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.5);
  padding: 2rem 0;
  font-size: 0.88rem;
}
.legal-foot .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: space-between; }
.legal-foot a { color: rgba(255, 255, 255, 0.7); }
.legal-foot a:hover { color: var(--coral); }

@media (max-width: 620px) {
  .contact-list { grid-template-columns: 1fr; }
  .top-inner img { height: 34px; }
}
