/* -----------------------------------------
   Cookie & Privacy Policy Page (Star Import)
------------------------------------------ */

.policy-page {
  background: var(--color-gray-light, #f9f9f9);
  padding: clamp(1.25rem, 2vw, 2.25rem) 0;
}

/* Hero wrapper */
.policy-hero .policy-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Title + subtitle */
.policy-title {
  font-family: 'Libre Baskerville', serif;
  color: var(--color-blue-dark, #0D1F47);
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  text-align: center;
  margin: 0.75rem 0 0.5rem;
}

.policy-subtitle {
  text-align: center;
  font-size: clamp(1rem, 1.2vw, 1.23rem);
  color: var(--color-gray-dark, #333);
  margin: 0 auto 1.25rem;
  max-width: 900px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   Contact & Hours block (top of policy page)
   Place below .policy-subtitle and above Tabs
   ───────────────────────────────────────────── */

.policy-contactHours {
  margin: 0 auto 1.25rem;
  max-width: 1200px;
  background: var(--color-white, #fff);
  border: 1px solid var(--color-gray-medium, #ccc);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
  padding: 1.1rem 1.2rem 1rem;
}

.policy-contactHours h3 {
  margin: 0 0 0.85rem;
  font-family: 'Libre Baskerville', serif;
  color: var(--color-blue-dark, #0D1F47);
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
}

.policy-hoursGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.policy-hoursCol {
  border: 1px solid var(--color-gray-medium, #ccc);
  border-radius: 10px;
  background: #fbfbfb;
  padding: 0.95rem 1rem;
}

.policy-hoursCol h4 {
  margin: 0 0 0.5rem;
  color: var(--color-blue-dark, #0D1F47);
  font-size: 1.05rem;
}

.policy-hoursCol p {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.10rem);
  line-height: 1.7;
  color: var(--color-gray-dark, #333);
}

.policy-hoursCol a {
  color: var(--color-blue, #1a30cb);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-hoursList {
  margin: 0;
  padding-left: 1.2rem;
}

.policy-hoursList li {
  margin: 0.25rem 0;
  font-size: clamp(1rem, 1.2vw, 1.10rem);
  line-height: 1.7;
  color: var(--color-gray-dark, #333);
}

/* Make the note match your existing "hint" styling */
.policy-contactHours .policy-note {
  margin: 0.95rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--color-blue, #1a30cb);
  background: #f6f7ff;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
}

/* Responsive: stack columns */
@media (max-width: 980px) {
  .policy-hoursGrid {
    grid-template-columns: 1fr;
  }
}

/* Tabs */
.policy-tabs {
  background: var(--color-white, #fff);
  border: 1px solid var(--color-gray-medium, #ccc);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
  overflow: hidden;

  display: flex;              /* NEW: lay out children in a row */
  flex-wrap: wrap;            /* allow panels to wrap below */
}

/* hide radio but keep accessible */
.policy-tabInput {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Each label takes exactly half width */
.policy-tab {
  flex: 1 1 50%;              /* evenly divide the row */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--color-blue-dark, #0D1F47);
  background: #f2f2f2;
  border-bottom: 1px solid var(--color-gray-medium, #ccc);
  border-right: 1px solid var(--color-gray-medium, #ccc);
  user-select: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* remove divider on the last tab in a 4-tab row */
label.policy-tab:nth-of-type(4n) {
  border-right: none;
}

/* active tab */
#tab-cookie:checked + .policy-tab {
  background: var(--color-blue-dark, #0D1F47);
  color: var(--color-white, #fff);
}
#tab-privacy:checked + .policy-tab {
  background: var(--color-blue-dark, #0D1F47);
  color: var(--color-white, #fff);
}
#tab-tos:checked + .policy-tab {
  background: var(--color-blue-dark, #0D1F47);
  color: var(--color-white, #fff);
}
#tab-ada:checked + .policy-tab {
  background: var(--color-blue-dark, #0D1F47);
  color: var(--color-white, #fff);
}

/* Panels */
.policy-panel {
  display: none;
  padding: clamp(1rem, 1.6vw, 1.75rem);
}

#tab-cookie:checked ~ #panel-cookie { display: block; }
#tab-privacy:checked ~ #panel-privacy { display: block; }
#tab-tos:checked ~ #panel-tos { display: block; }
#tab-ada:checked ~ #panel-ada { display: block; }

/* Card content */
.policy-card {
  background: var(--color-white, #fff);
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;

  column-gap: 1rem;   /* horizontal spacing between Effective / Updated */
  row-gap: 0.25rem;   /* vertical spacing between rows (smaller = tighter) */

  font-size: 0.95rem;
  color: var(--color-gray-dark, #333);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--color-gray-medium, #ccc);
  margin-bottom: 1rem;
}

/* Tighten meta row spacing */
.policy-meta p {
  margin: 0;              /* removes default <p> margin */
  line-height: 1.35;      /* keeps it compact */
}

/* Force Applies-to onto its own clean row */
.policy-meta .policy-applies {
  flex-basis: 100%;
}

/* Optional: let long applies text wrap nicely */
.policy-meta .policy-applies span {
  word-break: break-word;
}

.policy-card h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  color: var(--color-blue-dark, #0D1F47);
  font-family: 'Libre Baskerville', serif;
}

.policy-card p,
.policy-card li {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.75;
  color: var(--color-gray-dark, #333);
}

.policy-card ul {
  margin-left: 1.25rem;
  margin-top: 0.4rem;
  margin-bottom: 0.9rem;
}

.policy-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  background: #f3f5ff;
  border: 1px solid #d7ddff;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

/* Grid boxes in Cookie Policy */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.9rem;
}

.policy-box {
  border: 1px solid var(--color-gray-medium, #ccc);
  border-radius: 10px;
  padding: 1rem;
  background: #fbfbfb;
}

.policy-box h4 {
  color: var(--color-blue-dark, #0D1F47);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.policy-note {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.6rem;
}

.policy-bottomHint {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--color-blue, #1a30cb);
  background: #f6f7ff;
  border-radius: 8px;
}

/* Links */
.policy-card a {
  color: var(--color-blue, #1a30cb);
  font-weight: 700;
}
.policy-card a:hover {
  color: var(--color-blue-dark, #0D1F47);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 980px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }
  .policy-tab {
    width: 50%;
    font-size: 0.9rem;
    padding: 0.8rem 0.6rem;
  }
}

@media (max-width: 420px) {
  .policy-tab {
    font-size: 0.82rem;
    letter-spacing: 0.2px;
  }
}

/* Tip jump link: keep sentence normal, only highlight the policy word */
.policy-bottomHint .policy-jump {
  color: inherit !important;
  font-weight: inherit !important;
  text-decoration: none !important;
}

.policy-bottomHint .policy-jump:hover {
  color: inherit !important;
  text-decoration: none !important;
}

/* Only the policy word looks like a link */
.policy-bottomHint .policy-jumpText {
  color: #111;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-bottomHint .policy-jump:hover .policy-jumpText {
  color: var(--color-blue, #1a30cb);
}

/* ADA inline link */
#panel-ada .ada-kbGuideLink{
  margin-left: .6rem;
  font-weight: 700;
  color: #1A3C8D;              /* blue link */
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
#panel-ada .ada-kbGuideLink:hover{
  color: #0D1F47;
  background: rgba(218, 165, 32, 0.18); /* gold tint */
  border-radius: 4px;
  padding: 0 .25rem;
}
#panel-ada .ada-kbGuideLink:focus-visible{
  outline: 2px solid #DAA520;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Keyboard Guide Modal (blue + gold like your service popup) */
.kbGuide-modal{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background-color: rgba(0,0,0,0.7);
}
.kbGuide-modal.is-open{ display:block; }

.kbGuide-content{
  background-color: #0D1F47;
  color: #fff;
  width: min(980px, 92vw);
  max-height: 84vh;
  overflow: auto;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  padding: 18px 20px;
}

.kbGuide-close{
  color: #aaaaaa;
  float: right;
  font-size: 34px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  background: transparent;
  line-height: 1;
  padding: 0 8px;
}
.kbGuide-close:hover,
.kbGuide-close:focus{
  color: #ffffff;
  transform: translateY(-1px);
}

.kbGuide-sub{
  margin-top: -6px;
  opacity: 0.9;
  text-align: center;
}

.kbGuide-body h3{
  margin-top: 18px;
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.55);
}
.kbGuide-body h4{
  margin-top: 12px;
  margin-bottom: 6px;
  color: #fff;
  opacity: 0.95;
}
.kbGuide-body ul{
  margin-top: 6px;
  padding-left: 1.2rem; /* keeps bullet indent consistent */
}
.kbGuide-body li{
  margin: 6px 0;
  line-height: 1.45;
}

.kbGuide-body code{
  background: rgba(255,255,255,0.14);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

/* ✅ More side gap for the main text block */
.kbGuide-body{
  padding-inline: 24px;   /* left + right spacing */
  /* optional: keeps padding from feeling huge on tiny screens */
  /* padding-inline: clamp(14px, 3vw, 34px); */
}

.kbGuide-note{
  opacity: 0.95;
  margin-top: 6px;
}

.kbGuide-works{
  opacity: 0.9;
  margin-left: .35rem;
  font-weight: 600;
}

.kbGuide-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end; /* ✅ push items to far right */
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.kbGuide-btn{
  display: inline-block;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 5px;
  padding: 10px 16px;
  text-decoration: none;
  background: #333333;
  color: #fff;
}
.kbGuide-btn:hover{
  background: #000;
  transform: translateY(-1px);
}

.kbGuide-btn--gold{
  background: #DAA520;
  color: #fff;
}
.kbGuide-btn--gold:hover{
  background: #cda117;
  box-shadow: 0px 0px 8px rgba(255, 255, 255, 0.25);
}

/* Force all modal text to use the modal's white color (prevents global p { color:#333 } overrides) */
.kbGuide-content p,
.kbGuide-content li,
.kbGuide-content span {
  color: inherit;
}

/* Optional: instead of opacity (which dims everything), use a readable white-tint */
.kbGuide-sub,
.kbGuide-note,
.kbGuide-works {
  opacity: 1;
  color: rgba(255, 255, 255, 0.92);
}

/* Keep KB Guide button text white even if global a:hover rules exist */
.kbGuide-content a.kbGuide-btn,
.kbGuide-content a.kbGuide-btn:visited,
.kbGuide-content a.kbGuide-btn:hover,
.kbGuide-content a.kbGuide-btn:focus {
  color: #fff;
  text-decoration: none;
}

/* Gold button hover: explicitly keep white text */
.kbGuide-content a.kbGuide-btn--gold:hover,
.kbGuide-content a.kbGuide-btn--gold:focus {
  color: #fff;
}