/* policies page */
/* =================================================================
     POLICIES PAGE
  ==================================================================*/

  .pl-wrap{ max-width:var(--container); margin:0 auto; padding:12px 12px 0; }

  .pl-hero{
    position:relative;
    overflow:hidden;
    border-radius:16px;
    padding:22px 18px;
    color:#fff;
    background:
      radial-gradient(240px 160px at 100% 0%, rgba(255,255,255,0.18), transparent 70%),
      linear-gradient(135deg, var(--brand-light), var(--brand) 55%, var(--brand-dark));
  }
  .pl-hero::after{
    content:"";
    position:absolute;
    right:-30px; bottom:-50px;
    width:150px; height:150px;
    border-radius:50%;
    border:20px solid rgba(255,255,255,0.07);
  }
  .pl-hero h1{ margin:0 0 6px; font-size:24px; }
  .pl-hero p{ margin:0; font-size:13px; line-height:1.55; color:rgba(255,255,255,0.88); max-width:440px; }

  /* policy switcher */
  .pl-tabs{
    position:sticky;
    top:var(--header-h);
    z-index:30;
    background:#fff;
    margin:14px -12px 0;
    padding:10px 12px;
    border-bottom:1px solid var(--line);
    display:flex;
    gap:8px;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .pl-tabs::-webkit-scrollbar{ display:none; }
  .pl-tab{
    flex-shrink:0;
    display:flex;
    align-items:center;
    gap:7px;
    height:38px;
    padding:0 14px;
    border-radius:999px;
    border:1.5px solid var(--line-2);
    background:#fff;
    color:var(--text-2);
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    white-space:nowrap;
    text-decoration:none;
  }
  .pl-tab svg{ width:16px; height:16px; color:var(--brand); }
  .pl-tab[aria-selected="true"]{ background:var(--brand); border-color:var(--brand); color:#fff; }
  .pl-tab[aria-selected="true"] svg{ color:#fff; }

  .pl-layout{ margin-top:16px; }
  .pl-toc{ display:none; }

  /* a policy */
  .pl-doc{ outline:none; }
  .pl-doc[hidden]{ display:none; }
  .pl-doc-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
  .pl-doc-head h2{ margin:0; font-size:22px; color:var(--text); }
  .pl-updated{ margin:4px 0 0; font-size:12px; color:var(--muted-2); }
  .pl-tools{ display:flex; gap:8px; }
  .pl-tool{
    display:inline-flex; align-items:center; gap:6px;
    height:34px; padding:0 12px;
    border-radius:8px;
    border:1.5px solid var(--line-2);
    background:#fff;
    color:var(--text-2);
    font-size:12px; font-weight:600;
    cursor:pointer;
  }
  .pl-tool svg{ width:14px; height:14px; color:var(--brand); }

  /* key points */
  .pl-glance{
    margin:16px 0 4px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .pl-g{
    padding:14px;
    border-radius:14px;
    background:var(--brand-soft);
  }
  .pl-g .ic{ width:34px; height:34px; border-radius:10px; background:#fff; color:var(--brand); display:flex; align-items:center; justify-content:center; margin-bottom:8px; }
  .pl-g .ic svg{ width:18px; height:18px; }
  .pl-g b{ display:block; font-size:15px; color:var(--text); line-height:1.25; }
  .pl-g span{ display:block; margin-top:2px; font-size:11.5px; color:var(--muted); line-height:1.4; }

  /* body text */
  .pl-body{ margin-top:8px; }
  .pl-sec{ padding-top:22px; scroll-margin-top:calc(var(--header-h) + 70px); }
  .pl-sec h3{
    margin:0 0 8px;
    font-size:16px;
    color:var(--text);
    display:flex;
    align-items:baseline;
    gap:10px;
  }
  .pl-sec h3 .n{ flex-shrink:0; font-size:12px; font-weight:800; color:var(--brand); background:var(--brand-soft); border-radius:6px; padding:2px 7px; }
  .pl-sec p, .pl-sec li{ font-size:14px; line-height:1.7; color:var(--muted); }
  .pl-sec p{ margin:0 0 10px; }
  .pl-sec ul, .pl-sec ol{ margin:0 0 10px; padding-left:20px; }
  .pl-sec li{ margin-bottom:4px; }
  .pl-sec li::marker{ color:var(--brand); }
  .pl-sec b, .pl-sec strong{ color:var(--text-2); }
  .pl-sec a{ color:var(--brand); font-weight:600; }

  .pl-table-wrap{ overflow-x:auto; margin:4px 0 12px; border:1px solid var(--line); border-radius:12px; }
  .pl-table{ width:100%; border-collapse:collapse; font-size:12.5px; }
  .pl-table th, .pl-table td{ padding:9px 10px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line); }
  .pl-table th{ white-space:nowrap; }
  .pl-table th{ background:var(--surface); font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); font-weight:700; }
  .pl-table td{ color:var(--text-2); }
  .pl-table tr:last-child td{ border-bottom:none; }

  .pl-note{
    display:flex; gap:10px;
    margin:6px 0 12px;
    padding:12px 14px;
    border-radius:12px;
    background:#FFF6EC;
    border:1px solid #FBE7CC;
    font-size:13px; line-height:1.55; color:#8A5A1F;
  }
  .pl-note svg{ width:18px; height:18px; flex-shrink:0; margin-top:1px; }

  .pl-steps{ list-style:none; padding:0 !important; counter-reset:s; display:grid; gap:8px; }
  .pl-steps li{ counter-increment:s; position:relative; padding:12px 12px 12px 48px; border-radius:12px; background:var(--surface); margin:0; }
  .pl-steps li::before{
    content:counter(s);
    position:absolute; left:12px; top:12px;
    width:26px; height:26px; border-radius:50%;
    background:var(--brand); color:#fff;
    font-size:12px; font-weight:800;
    display:flex; align-items:center; justify-content:center;
  }

  .pl-contact-card{
    margin-top:12px;
    padding:14px;
    border-radius:12px;
    border:1px solid var(--line);
    font-size:13.5px; line-height:1.7; color:var(--muted);
  }
  .pl-contact-card b{ color:var(--text); }

  /* help box */
  .pl-help{
    margin-top:30px;
    display:flex; align-items:center; gap:12px; flex-wrap:wrap;
    padding:16px;
    border-radius:16px;
    background:var(--brand-soft);
  }
  .pl-help .ic{ width:42px; height:42px; border-radius:50%; background:#fff; color:var(--brand); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .pl-help .ic svg{ width:20px; height:20px; }
  .pl-help div{ flex:1; min-width:180px; }
  .pl-help strong{ display:block; font-size:14px; color:var(--text); }
  .pl-help span{ font-size:12.5px; color:var(--muted); }
  .pl-help a{
    display:inline-flex; align-items:center; height:40px; padding:0 16px;
    border-radius:10px; background:var(--brand); color:#fff;
    font-size:13px; font-weight:700; text-decoration:none;
  }

  .pl-top{
    position:fixed;
    right:16px;
    bottom:calc(20px + env(safe-area-inset-bottom));
    z-index:40;
    width:44px; height:44px;
    border-radius:50%;
    border:none;
    background:var(--brand);
    color:#fff;
    box-shadow:0 6px 18px rgba(var(--brand-rgb),0.3);
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
    opacity:0; pointer-events:none;
    transform:translateY(10px);
    transition:opacity .2s ease, transform .2s ease;
  }
  .pl-top.show{ opacity:1; pointer-events:auto; transform:none; }
  .pl-top svg{ width:18px; height:18px; }

  /* owner-written policy text */
  .pl-custom h4{ margin:20px 0 6px; font-size:15px; color:var(--text); }
  .pl-custom h4:first-child{ margin-top:0; }
  .pl-custom p, .pl-custom ul{ margin:0 0 12px; }

  @media (min-width:640px){
    .pl-glance{ grid-template-columns:repeat(4, 1fr); }
  }
  @media (min-width:1024px){
    .crumbs{ max-width:var(--page-max); padding:16px 32px 0; }
    .pl-wrap{ max-width:var(--page-max); padding:14px 32px 0; }
    .pl-hero{ padding:36px 44px; }
    .pl-hero h1{ font-size:32px; }
    .pl-hero p{ font-size:14.5px; }
    .pl-tabs{ position:static; margin:20px 0 0; padding:0; border:none; gap:10px; }
    .pl-tab{ height:42px; padding:0 18px; }
    .pl-layout{
      display:grid;
      grid-template-columns:240px minmax(0, 760px);
      gap:48px;
      align-items:start;
      margin-top:26px;
    }
    .pl-toc{
      display:block;
      position:sticky;
      top:96px;
      border-left:2px solid var(--line);
      padding:4px 0;
    }
    .pl-toc p{ margin:0 0 8px 16px; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted-2); }
    .pl-toc a{
      display:block;
      margin-left:-2px;
      padding:7px 0 7px 16px;
      border-left:2px solid transparent;
      font-size:13px;
      color:var(--muted);
      text-decoration:none;
      line-height:1.35;
    }
    .pl-toc a:hover{ color:var(--brand); }
    .pl-toc a.on{ color:var(--brand); font-weight:700; border-left-color:var(--brand); }
    .pl-doc-head h2{ font-size:28px; }
    .pl-sec{ padding-top:28px; scroll-margin-top:100px; }
    .pl-sec h3{ font-size:18px; }
    .pl-sec p, .pl-sec li{ font-size:15px; }
    .pl-table{ font-size:13.5px; }
    .pl-table th, .pl-table td{ padding:11px 14px; }
  }

  @media print{
    .top-line, .site-header, .site-footer, .crumbs, .pl-tabs, .pl-toc, .pl-tools, .pl-help, .pl-top,
    .drawer, .cart-drawer, .drawer-overlay, .login-modal-overlay, .cart-toast{ display:none !important; }
    .pl-hero{ background:none; color:#000; padding:0; }
    .pl-hero p{ color:#333; }
    .pl-layout{ display:block; }
    .pl-doc[hidden]{ display:none !important; }
    .pl-g{ border:1px solid #ddd; background:none; }
  }
