/* =============================================================================
   ADD Coffee — legal & account pages (privacy policy, account closure)

   Self-contained: it declares its own tokens under .ac-legal rather than leaning on
   storefront.css, because these pages are the ones most likely to be linked to from
   outside (an app store listing, an email, a support reply) and must not depend on
   another stylesheet happening to be on the page.

   Scoped throughout so nothing here can leak into the Craft/Elementor theme.
   ========================================================================== */

.ac-legal{
  --ts-cream:#F1EAE0; --ts-cream-deep:#E7DECF; --ts-terracotta:#C18B57;
  --ts-terracotta-dk:#A8723F; --ts-ink:#1C1A17; --ts-body:#5C564D; --ts-gold:#D8A24A;
  --r-sm:3px; --r-md:7px; --ease:cubic-bezier(.22,.61,.36,1);
  font-family:'Inter',Helvetica,Arial,sans-serif;
  background:var(--ts-cream);
  padding-bottom:96px;
  -webkit-font-smoothing:antialiased;
}

/* ------------------------------------------------------------------- hero */
/* Top padding clears the Craft theme's centred logo, which floats over the top of the
   page: at the usual 64–74px the eyebrow rendered directly behind it and the title
   crossed it. */
.ac-legal__hero{ background:var(--ts-ink); padding:132px 24px 84px; text-align:center; color:#fff; }
.ac-legal__eyebrow{
  font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:10.5px; letter-spacing:.26em;
  text-transform:uppercase; color:var(--ts-gold); margin-bottom:13px;
}
.ac-legal__title{
  font-family:'Fraunces',Georgia,serif; font-weight:300; font-size:42px; line-height:1.14;
  margin:0 0 14px; color:#fff;
}
.ac-legal__lede{
  max-width:620px; margin:0 auto; font-size:14.5px; line-height:1.8;
  color:rgba(241,234,224,.74);
}
.ac-legal__stamp{
  display:inline-block; margin-top:20px; padding:7px 15px; border:1px solid rgba(241,234,224,.18);
  border-radius:var(--r-sm); font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:rgba(241,234,224,.66);
}

/* ------------------------------------------------------------------ shell */
.ac-legal__wrap{
  max-width:1080px; margin:-44px auto 0; padding:0 20px;
  display:grid; grid-template-columns:236px 1fr; gap:34px; align-items:start;
}
.ac-legal__wrap--narrow{ max-width:760px; grid-template-columns:1fr; }

/* --------------------------------------------------------------- contents */
.ac-legal__toc{
  position:sticky; top:24px; background:#fff; border:1px solid var(--ts-cream-deep);
  border-radius:var(--r-md); padding:22px 20px;
}
.ac-legal__toc b{
  display:block; font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:9.5px;
  letter-spacing:.16em; text-transform:uppercase; color:var(--ts-body); margin-bottom:13px;
}
.ac-legal__toc a{
  display:block; padding:6px 0; font-size:13px; line-height:1.5; color:var(--ts-body);
  text-decoration:none; border-bottom:1px solid transparent; transition:color .2s var(--ease);
}
.ac-legal__toc a:hover{ color:var(--ts-terracotta-dk); }

/* ------------------------------------------------------------------ prose */
.ac-legal__body{ background:#fff; border:1px solid var(--ts-cream-deep); border-radius:var(--r-md); padding:44px 46px; }

.ac-legal__body h2{
  font-family:'Fraunces',Georgia,serif; font-weight:500; font-size:23px; line-height:1.3;
  color:var(--ts-ink); margin:46px 0 14px; scroll-margin-top:24px;
}
.ac-legal__body h2:first-child{ margin-top:0; }
.ac-legal__body h3{
  font-family:'Inter',Helvetica,Arial,sans-serif; font-weight:600; font-size:15px;
  color:var(--ts-ink); margin:28px 0 9px;
}
.ac-legal__body p,
.ac-legal__body li{ font-size:14px; line-height:1.85; color:var(--ts-body); }
.ac-legal__body p{ margin:0 0 15px; }
.ac-legal__body ul,
.ac-legal__body ol{ margin:0 0 16px; padding-left:21px; }
.ac-legal__body li{ margin-bottom:8px; }
.ac-legal__body strong{ color:var(--ts-ink); font-weight:600; }
.ac-legal__body a{ color:var(--ts-terracotta-dk); text-decoration:underline; text-underline-offset:2px; }
.ac-legal__body a:hover{ color:var(--ts-ink); }
.ac-legal__body hr{ border:0; border-top:1px solid var(--ts-cream-deep); margin:40px 0 0; }

/* A run of definition-style rows — "what we collect / why". Reads better than a
   table on a phone, which is where most of this will be read. */
.ac-legal__rows{ border-top:1px solid var(--ts-cream-deep); margin:0 0 20px; }
.ac-legal__row{
  display:grid; grid-template-columns:210px 1fr; gap:20px;
  padding:15px 0; border-bottom:1px solid var(--ts-cream-deep);
}
.ac-legal__row dt{
  font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:10px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ts-ink); line-height:1.7;
}
.ac-legal__row dd{ margin:0; font-size:13.5px; line-height:1.8; color:var(--ts-body); }

/* Pulled-out statement — used where the page makes a promise, not a description. */
.ac-legal__note{
  background:#FCFAF7; border-left:3px solid var(--ts-terracotta);
  border-radius:0 var(--r-md) var(--r-md) 0; padding:18px 22px; margin:0 0 22px;
}
.ac-legal__note p:last-child{ margin-bottom:0; }
.ac-legal__note--dark{ background:var(--ts-ink); border-left-color:var(--ts-gold); }
.ac-legal__note--dark p{ color:rgba(241,234,224,.78); }
.ac-legal__note--dark strong{ color:#fff; }
.ac-legal__note--dark a{ color:var(--ts-gold); }

/* --------------------------------------------------------- account closure */
.ac-legal__card{
  background:#fff; border:1px solid var(--ts-cream-deep); border-radius:var(--r-md);
  padding:30px 32px; margin-bottom:22px;
}
.ac-legal__card h2{
  font-family:'Fraunces',Georgia,serif; font-weight:500; font-size:20px;
  color:var(--ts-ink); margin:0 0 7px;
}
.ac-legal__card p{ font-size:13.5px; line-height:1.8; color:var(--ts-body); margin:0 0 15px; }
.ac-legal__card p:last-child{ margin-bottom:0; }

.ac-legal__who{
  display:flex; align-items:center; gap:13px; padding:16px 18px; margin-bottom:22px;
  background:#FCFAF7; border:1px solid var(--ts-cream-deep); border-radius:var(--r-md);
}
.ac-legal__who i{ color:var(--ts-terracotta); font-size:16px; }
.ac-legal__who b{ display:block; font-size:14px; color:var(--ts-ink); }
.ac-legal__who span{ display:block; font-size:12.5px; color:var(--ts-body); margin-top:2px; }

/* Two columns: what goes, what stays. Side by side so neither can be read alone. */
.ac-legal__split{ display:grid; grid-template-columns:1fr 1fr; gap:0; border:1px solid var(--ts-cream-deep); border-radius:var(--r-md); overflow:hidden; margin-bottom:22px; }
.ac-legal__split > div{ padding:22px 24px; }
.ac-legal__split > div + div{ border-left:1px solid var(--ts-cream-deep); background:#FCFAF7; }
.ac-legal__split h3{
  font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:10px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--ts-body); margin:0 0 13px;
}
.ac-legal__split ul{ margin:0; padding:0; list-style:none; }
.ac-legal__split li{
  position:relative; padding-left:22px; margin-bottom:10px; font-size:13px;
  line-height:1.7; color:var(--ts-body);
}
.ac-legal__split li::before{
  position:absolute; left:0; top:1px; font-family:'Font Awesome 6 Free'; font-weight:900; font-size:10px;
}
.ac-legal__split .go li::before{ content:'\f00d'; color:#A8442F; }
.ac-legal__split .stay li::before{ content:'\f023'; color:#4E7A52; }

/* A reason closure is refused, with the screen that clears it. */
.ac-legal__block{
  display:flex; gap:14px; padding:18px 20px; margin-bottom:13px;
  background:#FBF1EE; border-left:3px solid #A8442F; border-radius:0 var(--r-md) var(--r-md) 0;
}
.ac-legal__block i{ color:#A8442F; font-size:15px; margin-top:2px; }
.ac-legal__block b{ display:block; font-size:14px; color:var(--ts-ink); margin-bottom:5px; }
.ac-legal__block p{ font-size:13px; line-height:1.75; color:var(--ts-body); margin:0; }
.ac-legal__block a{
  display:inline-block; margin-top:9px; font-family:'IBM Plex Mono',ui-monospace,monospace;
  font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--ts-terracotta-dk);
}

/* ------------------------------------------------------------------ forms */
.ac-legal__f{ margin-bottom:18px; }
.ac-legal__f label{
  display:block; font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:9.5px;
  letter-spacing:.15em; text-transform:uppercase; color:var(--ts-body); margin-bottom:6px;
}
.ac-legal__f input[type=text],
.ac-legal__f input[type=password],
.ac-legal__f textarea{
  width:100%; padding:11px 13px; font-family:inherit; font-size:14px; color:var(--ts-ink);
  background:#FCFAF7; border:1px solid var(--ts-cream-deep); border-radius:var(--r-sm);
}
.ac-legal__f input:focus,
.ac-legal__f textarea:focus{ outline:none; border-color:var(--ts-terracotta); background:#fff; }
/* The Craft theme paints placeholders in near-black, which made the "DELETE" hint in
   the confirmation box look like a value already typed — on the one field where
   misreading it is worst. Force them back to a hint colour. */
.ac-legal__f input::placeholder,
.ac-legal__f textarea::placeholder{ color:#A39C91; opacity:1; }
.ac-legal__f input.is-invalid{ border-color:#A8442F; }
.ac-legal__f .err{ display:block; margin-top:6px; font-size:12.5px; color:#A8442F; }
.ac-legal__f .hint{ display:block; margin-top:6px; font-size:12px; line-height:1.6; color:var(--ts-body); }

.ac-legal__check{ display:flex; gap:11px; align-items:flex-start; margin-bottom:22px; }
.ac-legal__check input{ margin-top:4px; width:auto; flex:none; }
.ac-legal__check span{ font-size:13px; line-height:1.7; color:var(--ts-body); }

.ac-legal__actions{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.ac-legal__btn{
  display:inline-flex; align-items:center; gap:9px; padding:13px 26px; border:0; cursor:pointer;
  background:#A8442F; color:#fff; border-radius:var(--r-sm);
  font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:10.5px; letter-spacing:.14em;
  text-transform:uppercase; text-decoration:none; transition:background .2s var(--ease);
}
.ac-legal__btn:hover{ background:#8E3826; color:#fff; }
.ac-legal__btn i{ color:inherit; }
.ac-legal__btn[disabled]{ opacity:.4; cursor:not-allowed; }
.ac-legal__btn--ghost{ background:transparent; color:var(--ts-ink); border:1px solid var(--ts-cream-deep); }
.ac-legal__btn--ghost:hover{ background:#FCFAF7; color:var(--ts-ink); }
.ac-legal__btn--dark{ background:var(--ts-ink); }
.ac-legal__btn--dark:hover{ background:#332F29; }

/* --------------------------------------------------------------- goodbye */
.ac-legal__done{ text-align:center; background:#fff; border:1px solid var(--ts-cream-deep); border-radius:var(--r-md); padding:54px 44px; }
/* Direct child only: as `.ac-legal__done i` this also caught the arrow inside the
   button below it, out-specifying `.ac-legal__btn i` and turning it green. */
.ac-legal__done > i{ font-size:30px; color:#4E7A52; margin-bottom:18px; display:block; }

/* ------------------------------------------------------------ responsive */
@media (max-width:900px){
  .ac-legal__wrap{ grid-template-columns:1fr; gap:22px; }
  .ac-legal__toc{ position:static; }
  .ac-legal__body{ padding:32px 24px; }
  .ac-legal__title{ font-size:32px; }
  .ac-legal__row{ grid-template-columns:1fr; gap:5px; }
  .ac-legal__split{ grid-template-columns:1fr; }
  .ac-legal__split > div + div{ border-left:0; border-top:1px solid var(--ts-cream-deep); }
}
